Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Latest commit

 

History

History
53 lines (29 loc) · 743 Bytes

author.md

File metadata and controls

53 lines (29 loc) · 743 Bytes

FORMAT: 1A

Entity Authors [/api/v1.1/entity/{entity_id}/author]

Retrieve Entity Authors [GET]

  • Headers

      Authorization: <api_key>
    
  • Parameters

      + search: `search term` (string, optional)
    

Response 200 (application/json)

    {
        "authors" : [
            {
                "name" : "Victor Ferreira",
                "id" : "f0d3adbc-c81f-492b-a232-9e8bcaaa0b22",
                "role" : "Editor"
            }
        ]
    }

Add Author [POST]

  • Headers

      Authorization: <api_key>
    
  • Body

      {
          "name": "author name",
          "role": "author role"
      }
    

Response 200 (application/json)

    {
        "ok": 1
    }