Excluir api.http
This commit is contained in:
74
api.http
74
api.http
@@ -1,74 +0,0 @@
|
||||
### Login
|
||||
# @name login
|
||||
POST http://localhost:3333/api/auth/login
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"email": "admin@gastrobar.com",
|
||||
"senha": "123456"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
@token = {{login.response.body.token}}
|
||||
|
||||
### Criar Categoria
|
||||
POST http://localhost:3333/api/categorias
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"nome": "Bebidas"
|
||||
}
|
||||
|
||||
### Listar Categorias
|
||||
GET http://localhost:3333/api/categorias
|
||||
|
||||
### Criar Produto
|
||||
POST http://localhost:3333/api/produtos
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"nome": "Cerveja Artesanal",
|
||||
"descricao": "IPA 500ml",
|
||||
"preco": 25.50,
|
||||
"itemCozinha": false,
|
||||
"categoriaId": "COLOQUE_O_ID_DA_CATEGORIA_AQUI"
|
||||
}
|
||||
|
||||
### Listar Produtos
|
||||
GET http://localhost:3333/api/produtos
|
||||
|
||||
### Abrir Comanda
|
||||
# @name comanda
|
||||
POST http://localhost:3333/api/comandas
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"identificador": "Mesa 01",
|
||||
"nomeCliente": "João Silva"
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
@comandaId = {{comanda.response.body.id}}
|
||||
|
||||
### Adicionar Item à Comanda
|
||||
POST http://localhost:3333/api/comandas/{{comandaId}}/itens
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"produtoId": "COLOQUE_O_ID_DO_PRODUTO_AQUI",
|
||||
"quantidade": 2,
|
||||
"observacao": "Sem gelo"
|
||||
}
|
||||
|
||||
### Painel da Cozinha / Bar (Listar Pendentes)
|
||||
GET http://localhost:3333/api/painel/itens?status=PENDENTE
|
||||
|
||||
### Atualizar Status do Item
|
||||
PATCH http://localhost:3333/api/painel/itens/COLOQUE_O_ID_DO_ITEM_AQUI/status
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"status": "PREPARANDO"
|
||||
}
|
||||
Reference in New Issue
Block a user