Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: "2.0"
- info:
- description: "API rest Rivermatic Omnichannel"
- version: "1.0.0"
- title: "Rivermatic"
- termsOfService: "http://swagger.io/terms/"
- contact:
- email: "marcos@visie.com.br"
- license:
- name: "Apache 2.0"
- url: "http://www.apache.org/licenses/LICENSE-2.0.html"
- host: "http://127.0.0.1/"
- basePath: "rivermatic"
- tags:
- - name: "Shippingmethods"
- description: " Método que permite setar e retornar as formas de envio do produto"
- - name: "Paymentmethods"
- description: "Método que permite setar e retornar as formas de pagamentos escolhidas pelo usuario"
- - name: "Confirm"
- description: "Método que permite confirmar se o pagamento foi feito ou permite conferir o andamento do pagamento"
- schemes:
- - "http"
- paths:
- /Shippingmethods:
- post:
- tags:
- - "Shippingmethods"
- summary: "Seta o tipo de envio escolhido"
- description: ""
- operationId: "setShippingmethods"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "Esse metodo irá setar o tipo de envio que o usuario escolher"
- required: true
- schema:
- $ref: "#/definitions/Shippingmethods"
- responses:
- 405:
- description: "Invalid input"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- put:
- tags:
- - "Shippingmethods"
- summary: "Atualiza o tipo de envio escolhido"
- description: ""
- operationId: "updateShippingmethods"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "O tipo de envio deve estar setado para poder ser atualizado."
- required: true
- schema:
- $ref: "#/definitions/Shippingmethods"
- responses:
- 400:
- description: "Invalid ID supplied"
- 404:
- description: "Pet not found"
- 405:
- description: "Validation exception"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- get:
- tags:
- - "Shippingmethods"
- summary: "Retorna o tipo de envio escolhido "
- description: ""
- operationId: "getShippingmethods"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "O tipo de envio deve estar setado para poder ser retornado."
- required: true
- schema:
- $ref: "#/definitions/Shippingmethods"
- responses:
- 400:
- description: "Invalid ID supplied"
- 404:
- description: "Pet not found"
- 405:
- description: "Validation exception"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- /Paymentmethods:
- post:
- tags:
- - "Paymentmethods"
- summary: "Seta o tipo de pagamento escolhido"
- description: ""
- operationId: "setPaymentmethods"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "Esse metodo irá setar o tipo de pagamento escolhido pelo usuario"
- required: true
- schema:
- $ref: "#/definitions/Paymentmethods"
- responses:
- 405:
- description: "Invalid input"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- get:
- tags:
- - "Paymentmethods"
- summary: "Retorna o tipo de pagamento escolhido "
- description: ""
- operationId: "getPaymentmethods"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "O tipo de pagamento escolhido deve estar setado para poder ser retornado."
- required: true
- schema:
- $ref: "#/definitions/Paymentmethods"
- responses:
- 400:
- description: "Invalid ID supplied"
- 404:
- description: "Pet not found"
- 405:
- description: "Validation exception"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- /Confirm:
- post:
- tags:
- - "Confirm"
- summary: "Confirma o pagamento"
- description: ""
- operationId: "setConfirm"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "Esse metodo irá setar o pagamento do usuario"
- required: true
- schema:
- $ref: "#/definitions/Confirm"
- responses:
- 405:
- description: "Invalid input"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- put:
- tags:
- - "Confirm"
- summary: "Atualiza o pagamento, precisa estar setado para poder usar essa opção"
- description: ""
- operationId: "updateConfirm"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "Esse metodo irá atualizar o pagamento"
- required: true
- schema:
- $ref: "#/definitions/Confirm"
- responses:
- 405:
- description: "Invalid input"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- get:
- tags:
- - "Confirm"
- summary: "Retorna o pagamento"
- description: ""
- operationId: "getPayment"
- consumes:
- - "application/json"
- - "application/xml"
- produces:
- - "application/xml"
- - "application/json"
- parameters:
- - in: "body"
- name: "body"
- description: "O pagamento deve estar setado para poder ser retornado."
- required: true
- schema:
- $ref: "#/definitions/Shippingmethods"
- responses:
- 400:
- description: "Invalid ID supplied"
- 404:
- description: "Pet not found"
- 405:
- description: "Validation exception"
- security:
- - petstore_auth:
- - "write:pets"
- - "read:pets"
- securityDefinitions:
- petstore_auth:
- type: "oauth2"
- authorizationUrl: "http://petstore.swagger.io/oauth/dialog"
- flow: "implicit"
- scopes:
- write:pets: "modify pets in your account"
- read:pets: "read your pets"
- api_key:
- type: "apiKey"
- name: "api_key"
- in: "header"
- definitions:
- Confirm:
- type: "object"
- required:
- - "custom_field[account][3]"
- - "custom_field[account][2]"
- - "firstname"
- - "lastname"
- - "email"
- - "telephone"
- - "custom_field[address][1]"
- - "address_1"
- - "address_2"
- - "city"
- - "postcode"
- - "country_id"
- - "zone_id"
- properties:
- custom_field[account][3]:
- type: "integer"
- format: "int64"
- custom_field[account][2]:
- type: "string"
- example: "2017-12-30"
- firstname:
- type: "string"
- example: "João"
- lastname:
- type: "string"
- example: "da Silva"
- email:
- type: "string"
- example: "joao@gmail.com"
- telephone:
- type: "string"
- example: "(55) 11 947474747"
- fax:
- type: "string"
- example: "(55) 11 947474747"
- custom_field[address][1]:
- type: "string"
- example: "275 ou 275B"
- company:
- type: "string"
- example: "Proximo ao Parque"
- address_1:
- type: "string"
- example: "Alameda das Naçõe Unidas"
- address_2:
- type: "string"
- example: "Campo Limpo Paulista"
- city:
- type: "string"
- example: "São Paulo"
- postcode:
- type: "integer"
- example: "04602190"
- country_id:
- type: "integer"
- example: "14"
- zone_id:
- type: "integer"
- example: "244"
- Paymentmethods:
- type: "object"
- required:
- - "custom_field[account][3]"
- - "custom_field[account][2]"
- - "firstname"
- - "lastname"
- - "email"
- - "telephone"
- - "custom_field[address][1]"
- - "address_1"
- - "address_2"
- - "city"
- - "postcode"
- - "country_id"
- - "zone_id"
- properties:
- custom_field[account][3]:
- type: "integer"
- format: "int64"
- custom_field[account][2]:
- type: "string"
- example: "2017-12-30"
- firstname:
- type: "string"
- example: "João"
- lastname:
- type: "string"
- example: "da Silva"
- email:
- type: "string"
- example: "joao@gmail.com"
- telephone:
- type: "string"
- example: "(55) 11 947474747"
- fax:
- type: "string"
- example: "(55) 11 947474747"
- custom_field[address][1]:
- type: "string"
- example: "275 ou 275B"
- company:
- type: "string"
- example: "Proximo ao Parque"
- address_1:
- type: "string"
- example: "Alameda das Naçõe Unidas"
- address_2:
- type: "string"
- example: "Campo Limpo Paulista"
- city:
- type: "string"
- example: "São Paulo"
- postcode:
- type: "integer"
- example: "04602190"
- country_id:
- type: "integer"
- example: "14"
- zone_id:
- type: "integer"
- example: "244"
- Shippingmethods:
- type: "object"
- required:
- - "custom_field[account][3]"
- - "custom_field[account][2]"
- - "firstname"
- - "lastname"
- - "email"
- - "telephone"
- - "custom_field[address][1]"
- - "address_1"
- - "address_2"
- - "city"
- - "postcode"
- - "country_id"
- - "zone_id"
- properties:
- custom_field[account][3]:
- type: "integer"
- format: "int64"
- custom_field[account][2]:
- type: "string"
- example: "2017-12-30"
- firstname:
- type: "string"
- example: "João"
- lastname:
- type: "string"
- example: "da Silva"
- email:
- type: "string"
- example: "joao@gmail.com"
- telephone:
- type: "string"
- example: "(55) 11 947474747"
- fax:
- type: "string"
- example: "(55) 11 947474747"
- custom_field[address][1]:
- type: "string"
- example: "275 ou 275B"
- company:
- type: "string"
- example: "Proximo ao Parque"
- address_1:
- type: "string"
- example: "Alameda das Naçõe Unidas"
- address_2:
- type: "string"
- example: "Campo Limpo Paulista"
- city:
- type: "string"
- example: "São Paulo"
- postcode:
- type: "integer"
- example: "04602190"
- country_id:
- type: "integer"
- example: "14"
- zone_id:
- type: "integer"
- example: "244"
- ApiResponse:
- type: "object"
- properties:
- code:
- type: "integer"
- format: "int32"
- type:
- type: "string"
- message:
- type: "string"
- externalDocs:
- description: "Find out more about Swagger"
- url: "http://swagger.io"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement