Skip to content

Commit

Permalink
adding a new endpoint on swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
riquellopes committed Aug 5, 2018
1 parent 48f3eb7 commit 457c657
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions app/docs/boleto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Gera número para pagamento com boleto.
---
parameters:
- in: header
name: X-CLIENT
schema:
type: string
required: true
- in: body
name: data
required: true
schema:
id: Payload
required:
- amount
properties:
amount:
type: string
buyer:
type: object
properties:
name:
type: string
email:
type: string
cpf:
type: string
responses:
200:
description: Retorna o número do boleto
schema:
type: object
403:
description: Cliente inválido.
schema:
type: object
properties:
errors:
type: object
properties:
client:
type: array
items:
type: string
422:
description: Houve algum erro ao processar a requisição
schema:
type: object

0 comments on commit 457c657

Please sign in to comment.