Linksdefs

GET /linksdefs

Get the link’s definitions

Response JSON Object:
 
  • [key].category (string) – The link’s category
  • [key].name (string) – The link’s name
  • [key].scheme (string) – http or https
  • [key].tag (string) – The service tag
  • [key].service (string) – Used the get the ip address
  • [key].path (string) – A fixed path
  • [key].template (string) – Used to form the URI
  • [key].uri (string) – Fixed URI

Example response:

{
  "web": {
    "name": "Web site",
    "template": "http://${serviceEx `web` `` true}/admin"
  }
}
POST /linksdefs

Set the link’s definitions

Request JSON Object:
 
  • [key].category (string) – The link’s category
  • [key].name (string) – The link’s name
  • [key].scheme (string) – http or https
  • [key].tag (string) – The service tag
  • [key].service (string) – Used the get the ip address
  • [key].path (string) – A fixed path
  • [key].template (string) – Used to form the URI
  • [key].uri (string) – Fixed URI

Example query:

{
  "web": {
    "name": "Web site",
    "template": "http://${serviceEx `web` `` true}/admin"
  }
}
DELETE /linksdefs

Delete all link’s definitions

DELETE /linksdefs/{linkID}

Delete a link definition

Parameters:
  • linkID – The link ID