Skip to content

Latest commit

 

History

History
224 lines (135 loc) · 2.44 KB

ExampleApi.md

File metadata and controls

224 lines (135 loc) · 2.44 KB

ExampleApi

(multipart/form-data; boundary=b7nKPzJpa0Do+YuCSNnFspJt)

Request body

data:

(application/json)

{
   "image" : 100
}

attachment:

(application/octet-stream)

[application/octet-stream]

Response 200

(application/json)

"multipart/form-data"

(none/none)

Fetch user

URL Parameters

Name required type default value description example value
name false string Just some user name John

Request body

(none/none)

[none/none]

Response 200

(application/json)

{
   "id" : 1,
   "name" : "Jim"
}

(application/json)

Fetch user

Request body

{
   "id" : 2,
   "name" : "Hello"
}

Response 200

(application/json)

{
   "id" : 2,
   "name" : "Hello"
}

(none/none)

Request body

(none/none)

[none/none]

Response 405

(text/plain; charset=UTF-8)

HTTP method not allowed, supported methods: GET

(none/none)

URL Parameters

Name required type default value description example value
offset number 0
limit number 10

Request body

(none/none)

[none/none]

Request headers

Name required type default value description example value
Authorization string Basic YWRtaW46YWRtaW4=

Response 200

(application/json)

[
   {
      "id" : 1,
      "name" : "John"
   },
   {
      "id" : 2,
      "name" : "Jim"
   },
   {
      "id" : 3,
      "name" : "Jake"
   },
   {
      "id" : 4,
      "name" : "Jacob"
   },
   {
      "id" : 5,
      "name" : "Jane"
   }
]

(none/none)

Request body

(none/none)

[none/none]

Response 200

(application/json)

{
   "id" : 3,
   "name" : "Jake"
}