Products

List

Endpoint

GET /v1/products

Request

Route

GET /v1/products

Headers

Accept: application/json
X-Auth-Token: yLzSFAlr6U1u0-Sas6sp3Vsdw5w
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"7639b88d1df3f7b7350f6567b432d500"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 97f6a504-386f-46cf-b21f-a57048345fa7
X-Runtime: 0.073360
Content-Length: 578

Body

[
  {
    "name": "Oswaldo Schoen III",
    "uuid": "-YPoaSNaLB0caYtE",
    "description": "Voluptatem necessitatibus officiis facilis similique natus.",
    "quantity": 49,
    "kind": null
  },
  {
    "name": "Isac Wintheiser",
    "uuid": "6hYpjyEeOgPUmtEW",
    "description": "Enim sapiente rem unde.",
    "quantity": 15,
    "kind": null
  },
  {
    "name": "Magdalen Collier",
    "uuid": "JS1M_0VTIFNzXtB2",
    "description": "Illum molestiae id distinctio impedit sint.",
    "quantity": 7,
    "kind": null
  },
  {
    "name": "Freddie Runte",
    "uuid": "2N50MUZ_7klH9oz0",
    "description": "Pariatur sequi debitis molestiae autem repellat soluta dignissimos.",
    "quantity": 37,
    "kind": null
  }
]

Sellers

Create

Endpoint

POST /v1/sellers

Parameters

Name Description
seller[email] required Seller's email
seller[password] required Seller's password

Request

Route

POST /v1/sellers

Headers

Accept: application/json
X-Auth-Token: ASX9Qh3KsE4tseZPoun0_C1aDOQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Body

seller[email]=enola.farrell%40gibson.biz&seller[password]=123456

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json
Cache-Control: no-cache
X-Request-Id: 0fc1df62-20ec-461b-8639-1002ee2f7023
X-Runtime: 0.024901
Content-Length: 0

List

Endpoint

GET /v1/sellers

Request

Route

GET /v1/sellers

Headers

Accept: application/json
X-Auth-Token: bEkBw1mZ6k_fHxHDQDWvdLFJniE
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"e18d33f13754581e3ef4bb78a2623a83"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ac611062-ad7c-4363-8438-dab528640f49
X-Runtime: 0.017395
Content-Length: 167

Body

[
  {
    "id": 22,
    "email": "arely_rohan@zboncakgibson.org"
  },
  {
    "id": 21,
    "email": "elise@mayert.net"
  },
  {
    "id": 20,
    "email": "beie@terry.net"
  },
  {
    "id": 19,
    "email": "oceane@whitecollins.biz"
  }
]

Show

Endpoint

GET /v1/sellers/:id

Parameters

Name Description
id required Seller's id

Request

Route

GET /v1/sellers/23

Headers

Accept: application/json
X-Auth-Token: 3om8_um70htd0vAj_439fqyEWt8
Host: example.org
Cookie: 

Response

Simulated Response

Status

200

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"1e3a8daabfb1bfb08ee3ccc063d873a3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 807e22b0-2021-49fd-adbb-be0ade900fa1
X-Runtime: 0.008406
Content-Length: 45

Body

{
  "id": 23,
  "email": "zackary.lehner@heaney.org"
}