Mitchell Klijs edited this page Sep 22, 2018 · 1 revision

Endpoint: "/tag"

GET

Summary

Returns all tags

Parameters

None

Returns JsonArray
[  
   {  
      "label": "amzn",
      "id": 1
   },
   {  
      "label": "netflix",
      "id": 2
   }
]

GET/{id}

Summary

Returns the tag with the matching ID or 404 if no matching tag is found

Parameters

id (int)

Returns JsonObject
{  
   "label": "amzn",
   "id": 1
}

POST

Summary

Adds a new tag

Parameters

Required: label (string)

Returns JsonObject
{
   "label": "netflix",
   "id": 1
}

PUT

Summary

Update an existing tag

Parameters

Required: All parameters (you should perform a GET/{id} and submit the full body with the changes

Returns JsonObject
{
   "label": "netflix",
   "id": 1
}

DELETE/{id}

Summary

Delete the series with the given ID

Parameters

Required: id (int)

Returns JsonObject
{}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.