4.1.2 line/{Name}
key | value |
---|---|
URL | /{PREFIX}/line/{Name} |
Method | GET |
Description | Returns a Beacon Line by Name Parameters Name of Beacon Line [STRING] |
Response | JSON |
Example:
#curl -X GET localhost:8080/bline/v1/line/line1
{
"anchors":1,
"broadcast":false,
"description":"",
"enabled":true,
"name":"line1",
"scan":true,
"url":"blgd-8c8e76011316:3001"
}
key | value |
---|---|
URL | /{PREFIX}/line/{Name} |
Method | PUT |
Description | Writes a Beacon Line by Name Parameters Name of Beacon Line [STRING] |
Response | JSON |
Example:
#curl -X PUT localhost:8080/bline/v1/line/line3
-H 'Content-Type: application/json'
-d '{"anchors":20,"broadcast":true,"description":"","enabled":true,"name":"line3","scan":true,"url":"blgd-8c8e7601441e:3001"}'
key | value |
---|---|
URL | /{PREFIX}/line/{Name} |
Method | DELETE |
Description | Deletes a Beacon Line by Name Parameters Name of Beacon Line [STRING] |
Response | JSON |
Example:
#curl -X DELETE localhost:8080/bline/v1/line/line3