You are on page 1of 3

swagger '2.

0'

# schemes
# - http
# - https

# host localhost8085
# basePath testebank-apiv1

info
version 1.0.0
title TesteBank Api
description Teste do swagger
termsOfService localhost8085testebank-apiv1TermoUso

contact
name Euzinha
url localhost8085testebank-apiv1suporte
email aqui@agora
license
name MIT
url httpopensource.orglicensesMIT

securityDefinitions
BasicAuth
type basic

security
- BasicAuth []

consumes
- applicationjson
produces
- applicationjson

paths
'cliente'
post
summary Cadastro Cliente
description Cadasatra um novo Cliente
operationId cadastraCliente
parameters
- in body
name cliente_
schema
$ref '#definitionsCliente'

responses
200
description Cadastro Efetuado com Sucesso
schema
type object
properties
titular
type string
example Jane Aqui
400
description Requisicao Invalida
500
description Erro interno do servidor

'conta{agencia}{numero}{digito}saldo'
get
summary Consulta Saldo
description Consulta Saldo da Conta do Cliente
operationId ConsultaSaldo
security
- BasicAuth []
parameters
- in path
name agencia
type integer
format int32
required true

- in path
name numero
type integer
format int32
required true

- in path
name digito
type integer
format int32
required true

- in header
name autorization
type string
required true

responses
200
description Consulta a Saldo Efetuada com Sucesso
schema
type number
format double
401
description Requisicao Nao Autorizada
400
description Requisicao Invalida
500
description Erro no servidor
definitions
Cliente
type object
properties
id
type integer
format int64
example 234

titular
type string
example Jane Aqui

cpf
type string
maxLength 11
minLength 11

senha
type string
format password
example 1234

conta
type array
items
$ref '#definitionsContas'

Contas
type object
properties
agencia
type integer
format int32
example 324
numero
type integer
format int64
example 556

digito
type integer
format int32
example 7

saldo
type number
format double
example 55.60

cliente
$ref '#definitionsCliente'
# Added by API Auto Mocking Plugin
host virtserver.swaggerhub.com
basePath autbank5teste1.0.0
schemes
- https
- http

You might also like