Skip to content

List Local Authors

Fraser Redford edited this page Apr 15, 2021 · 9 revisions

GET authors

This will return a list of all authors registered with the local server.

Request Header

Basic authorization (base64 encoded username:password) or token authorization is required:

--header "Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
--header "Authorization: Token 9d9ed917fe1ead2d1e27ac7dc233348ed2e3d4c0"

Request Requirements

No body requirements

Sample Request

No body request required

Sample Response

[
    {
        "type": "author",
        "id": "https://team6-project-socialdistrib.herokuapp.com/author/21d2d52bf3c34b84a45951d53b472a08",
        "host": "https://team6-project-socialdistrib.herokuapp.com/",
        "displayName": "Jeff",
        "url": "https://team6-project-socialdistrib.herokuapp.com/author/21d2d52bf3c34b84a45951d53b472a08",
        "github": "https://github.com/Jeff/"
    },
    {
        "type": "author",
        "id": "https://team6-project-socialdistrib.herokuapp.com/author/6978b496f79d59fa9aa9648bf88dbaaf",
        "host": "https://team6-project-socialdistrib.herokuapp.com/",
        "displayName": "Jim",
        "url": "https://team6-project-socialdistrib.herokuapp.com/author/6978b496f79d59fa9aa9648bf88dbaaf",
        "github": "https:/tim.com/"
    }
]

Response Codes

  • 200 OK upon a successful retrieval of the author profiles
  • 403 FORBIDDEN if an user is attempting to change a profile they are not allowed to

Clone this wiki locally