Skip to content

Instantly share code, notes, and snippets.

@apsoto
Last active December 15, 2015 19:59

Revisions

  1. apsoto revised this gist Apr 10, 2013. 1 changed file with 12 additions and 3 deletions.
    15 changes: 12 additions & 3 deletions series.json
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,17 @@
    "series"
    ],
    "properties": {

    "id": 14,
    "description": "GUNS & EXPLOSIVES",
    "channelsRank": 0,
    "pubDate": "2013-03-20T17:13:07Z",
    "title": "FPSRussia",
    "thumbnails": {
    "default": {
    "url": "http://i2.ytimg.com/i/EPTp5WMAzjh9mOrKUwRLmQ/1.jpg?v=50dbe8c2"
    }
    },
    "totalEpisodes": 1
    },
    "entities": [
    {
    @@ -20,10 +30,9 @@
    "actions": [
    {
    "name": "follow-series",
    "href": "http://api.wurl.dev/api/follows",
    "title": "Start following a series",
    "method": "POST",
    "type": "application/x-www-form-urlencoded",
    "href": "http://api.wurl.dev/api/follows",
    "fields": [
    {
    "name": "series_id",
  2. apsoto created this gist Apr 4, 2013.
    49 changes: 49 additions & 0 deletions series.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@
    {

    "class": [
    "series"
    ],
    "properties": {

    },
    "entities": [
    {
    "rel": [
    "episodes"
    ],
    "href": "http://api.wurl.dev/api/series/14/episodes",
    "class": [
    "collection"
    ]
    }
    ],
    "actions": [
    {
    "name": "follow-series",
    "title": "Start following a series",
    "method": "POST",
    "type": "application/x-www-form-urlencoded",
    "href": "http://api.wurl.dev/api/follows",
    "fields": [
    {
    "name": "series_id",
    "type": "text",
    "value": 14
    },
    {
    "name": "user_id",
    "type": "text"
    }
    ]
    }
    ],
    "links": [
    {
    "rel": [
    "self"
    ],
    "href": "http://api.wurl.dev/api/series/14"
    }
    ]

    }
    37 changes: 37 additions & 0 deletions user.follows.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    {

    "properties": {
    "totalItems": 0,
    "currentCount": 0
    },
    "actions": [
    {
    "name": "follow-series",
    "title": "Start following a series",
    "method": "POST",
    "type": "application/x-www-form-urlencoded",
    "href": "http://api.wurl.dev/api/users/1/follows",
    "fields": [
    {
    "name": "series_id",
    "type": "text"
    }
    ]
    }
    ],
    "links": [
    {
    "rel": [
    "self"
    ],
    "href": "http://api.wurl.dev/api/users/1/follows"
    },
    {
    "rel": [
    "parent"
    ],
    "href": "http://api.wurl.dev/api/users/1"
    }
    ]

    }