Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 501 Bytes

post-add.md

File metadata and controls

35 lines (30 loc) · 501 Bytes

POST request to create object

POST http://fake-library.com/api/v1/author/add
Content-Type: application/json
{
  "data": {
    "name": "Arthur",
    "secondName": "Klark"
  }
}

Response

HTTP 201 (created)
Content-Type: application/json
{
  "links": {
    "self": "http://fake-library.com/api/v1/author/0"
  },
  "meta": {
    "copyright": "Copyright 2015 Fake Library Corp."
  }
}

НАЗАД <- Примеры запросов