Skip to content

Commit

Permalink
Atualização
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Oct 10, 2024
1 parent 87638c7 commit addd9c4
Showing 1 changed file with 94 additions and 83 deletions.
177 changes: 94 additions & 83 deletions backend/src/swagger.json
Original file line number Diff line number Diff line change
@@ -1,92 +1,103 @@
{
"openapi": "3.0.0",
"info": {
"title": "Documentação da API do Press Ticket",
"description": "Documentação da API para envio de mensagens e mídia.",
"contact": {
"email": "robson.tenorio@gmail.com"
},
"version": "1.0.0"
},
"servers": [
{
"url": "https://apisac.pypress.com.br",
"description": "API Press Ticket"
}
],
"paths": {
"/api/messages/send": {
"post": {
"summary": "Envio de Mensagens",
"description": "Envio de Mensagens",
"tags": [
"SEND"
],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#components/schemas/SEND"
},
"examples": {
"SEND": {
"value": {
"number": "5522999999999",
"body": "Mensagem de Teste da API"
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#components/schemas/SEND"
}
}
}
},
"401": {
"description": "Acesso não autorizado!"
},
"500": {
"description": "Erro interno!"
}
}
}
}

"openapi": "3.0.0",
"info": {
"title": "Documentação da API do Press Ticket",
"description": "Documentação da API para envio de mensagens e mídia.",
"contact": {
"email": "robson.tenorio@gmail.com"
},
"components": {
"schemas": {
"SEND": {
"type": "object",
"properties": {
"number": {
"type": "number"
},
"body": {
"type": "string"
}
"version": "1.0.0"
},
"servers": [
{
"url": "https://apiback.pressticket.com.br",
"description": "API Press Ticket"
}
],
"paths": {
"/api/messages/send": {
"post": {
"summary": "Envio de Mensagens",
"description": "Envio de Mensagens",
"tags": [
"SEND"
],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#components/schemas/SEND"
},
"examples": {
"SEND": {
"value": {
"number": "5522999999999",
"body": "Mensagem de Teste da API",
"userId": "1",
"queueId": "1",
"whatsappId": "1"
}
}
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"$ref": "#components/schemas/SEND"
}
}
}
},
"401": {
"description": "Acesso não autorizado!"
},
"500": {
"description": "Erro interno!"
}
}
}
}
},
"components": {
"schemas": {
"SEND": {
"type": "object",
"properties": {
"number": {
"type": "number"
},
"body": {
"type": "string"
},
"userId": {
"type": "number"
},
"queueId": {
"type": "number"
},
"whatsappId": {
"type": "number"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}

0 comments on commit addd9c4

Please sign in to comment.