Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 720 Bytes

tag.md

File metadata and controls

50 lines (31 loc) · 720 Bytes

Tag Backend Service Endpoints

All tags

GET localhost/api/admin/tag

Single tag

GET localhost/api/admin/tag/1

Add tag

POST localhost/api/admin/tag

{
  "id": "0",
  "name": "Documentary"
}

returns the new record

Update tag

PUT localhost/api/admin/tag

{
  "id": "0",
  "name": "News"
}

returns the updated record

Delete tag

DELETE localhost/api/admin/tag

returns 1 if deleted, 0 if no record with this id

Populate tags with up to 100 random tags (demo/testing endpoint)

GET localhost/api/admin/tag/populate

Videos for a tag

GET localhost/api/admin/tag/videos/1 => array of videos