API de Compradores

API de Compradores

Thiago Gaia22

Extension: REST Client

@baseUrl = https://nuzap.com.br/api
@tokenApi = E5YmZkNDE3MjU0YzFmZTI1
@store = my-store

###

POST {{baseUrl}}/shopper HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

{
  "store": "{{store}}",
  "name": "Thigato22 BahMeo",
  "email": "[email protected]",
  "phone": "31973492222"
}

###

GET {{baseUrl}}/shopper/6360?_store={{store}} HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

###

GET {{baseUrl}}/shopper/62359?_store={{store}} HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

###

GET {{baseUrl}}/shopper?_store={{store}}&_name=bubassauro HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

###

PUT {{baseUrl}}/shopper/6360 HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

{
  "store": "{{store}}",
  "name": "bahh meo22",
  "phone": "319999999999",
  "active": true,
  "instagram": "thiagogaia",
  "link": "https://bahmeo.com"
}

###

DELETE {{baseUrl}}/shopper/6360?_store={{store}} HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{tokenApi}}

Veja Também:

Up

Belo Horizonte - MG