Tag item

Read/write

This resource type refers to a user’s feed tag.

GET /api/v1/tags/(int: tag_id)/
Synopsis:Gets a feed tag.

Example request:

GET /api/v1/tags/1/ HTTP/1.1
Host: localhost:8000
Accept: application/vnd.collection+json

Example response:

HTTP/1.1 200 OK
Allow: GET, PUT, DELETE
Content-Type: application/vnd.collection+json

{
    "collection": {
        "href": "https://localhost:8000/api/v1/tags/1/",
        "items": [
            {
                "data": [
                    {
                        "name": "name",
                        "value": "Completed"
                    },
                    {
                        "name": "owner",
                        "value": "jbernal"
                    },
                    {
                        "name": "color",
                        "value": "red"
                    }
                ],
                "href": "https://localhost:8000/api/v1/tags/1/",
                "links": [
                    {
                        "href": "https://localhost:8000/api/v1/35/",
                        "rel": "feed"
                    }
                ]
            }
        ],
        "links": [],
        "template": {
            "data": [
                {
                    "name": "color",
                    "value": ""
                },
                {
                    "name": "name",
                    "value": ""
                }
            ]
        },
        "version": "1.0"
    }
}
Request Headers:
 
  • Accept – application/vnd.collection+json
Response Headers:
 
Status Codes:

Properties (API semantic descriptors):

  • owner (string) – the tag’s owner’s username. Read-only
  • name (string) – tag’s name. Can be part of the template object in PUT and POST requests
  • color (string) – tag’s color. Can be part of the template object in PUT and POST requests

Link Relations:

  • feed – links to the corresponding feed