Feed item

Read/write

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

In other Collection+JSON resource representations this resource type is linked by any link relation with attribute:

"rel": "feed"

GET /api/v1/(int: feed_id)/
Synopsis:Gets an authenticated user’s feed.

Example request:

GET /api/v1/35/ 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/35/",
        "items": [
            {
                "data": [
                    {
                        "name": "name",
                        "value": ""
                    }
                ],
                "href": "https://localhost:8000/api/v1/35/",
                "links": [
                    {
                        "href": "https://localhost:8000/api/v1/users/2/",
                        "rel": "owner"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/note35/",
                        "rel": "note"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/35/tags/",
                        "rel": "tags"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/35/comments/",
                        "rel": "comments"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/35/files/",
                        "rel": "files"
                    },
                    {
                        "href": "https://localhost:8000/api/v1/plugins/instances/60/",
                        "rel": "plugin_inst"
                    }
                ]
            }
        ],
        "links": [],
        "template": {
            "data": [
                {
                    "name": "name",
                    "value": ""
                },
                {
                    "name": "owner",
                    "value": ""
                }
            ]
        },
        "version": "1.0"
    }
}
Request Headers:
 
  • Accept – application/vnd.collection+json
Response Headers:
 
Status Codes:

Properties (API semantic descriptors):

  • name (string) – feed’s name. Can be part of the template object in PUT requests
  • owner (string) – username of a new feed’s owner. Can be part of the template object in PUT requests. Feeds can have more than one owner so they can be shared between users

Link Relations: