-
Notifications
You must be signed in to change notification settings - Fork 2
RESTful API F1
annypanny edited this page Nov 29, 2016
·
8 revisions
/author/[author_id]/network
-
It used to get all the content of friends of the current author.
-
It returned a JSON.
-
JSON file contains:
- "authors"
and in each "authors", it contains:
- "displayName"
- "id"
- "host"
- "url"
- "github"
- "is_local"
Method:
GET
Example:
GET /author/c974a1fd-fa8c-4d99-97d6-6006e0ee0a5f/network
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"authors": [
{
"displayName": "Gustavo Santiago",
"id": "a9284a45-5605-4a47-a967-ad39c35c72ec",
"host": "http://socialnets404.herokuapp.com/author/a9284a45-5605-4a47-a967-ad39c35c72ec",
"url": "http://socialnets404.herokuapp.com/",
"github": "shtanaka",
"is_local": true
},
{
"displayName": "Jiafeng Wu",
"id": "eb572e7b-7856-468b-bfdf-9b6388f9165c",
"host": "http://socialnets404.herokuapp.com/",
"url": "http://socialnets404.herokuapp.com/author/eb572e7b-7856-468b-bfdf-9b6388f9165c",
"github": "jiafengwu0301",
"is_local": true
}
]
}