| @ -1,18 +1,18 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Deletar médico", | |||
| "description": "Deleta um médico existente na base de dados pelo UID", | |||
| "type": "object", | |||
| "properties": { | |||
| "uid": { | |||
| "type": "UID", | |||
| "required": true, | |||
| "example": "24d714b2-c928-4768-85a1-0295630161b6" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "uid" | |||
| ] | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Deletar médico", | |||
| "description": "Deleta um médico existente na base de dados pelo UID", | |||
| "type": "object", | |||
| "properties": { | |||
| "uid": { | |||
| "type": "UID", | |||
| "required": true, | |||
| "example": "24d714b2-c928-4768-85a1-0295630161b6" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "uid" | |||
| ] | |||
| } | |||
| @ -1,19 +1,19 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Detalhes dos médicos", | |||
| "description": "É obtido todos os campos de detalhe do médico especificado por nome e/ou CRM, ou uma lista de médicos caso não especificado.", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string" | |||
| }, | |||
| "crm": { | |||
| "type": "string" | |||
| }, | |||
| "campos": { | |||
| "type": "string" | |||
| } | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Detalhes dos médicos", | |||
| "description": "É obtido todos os campos de detalhe do médico especificado por nome e/ou CRM, ou uma lista de médicos caso não especificado.", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string" | |||
| }, | |||
| "crm": { | |||
| "type": "string" | |||
| }, | |||
| "campos": { | |||
| "type": "string" | |||
| } | |||
| } | |||
| } | |||
| @ -1,42 +1,42 @@ | |||
| { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string" | |||
| }, | |||
| "crm": { | |||
| "type": "string" | |||
| }, | |||
| "especialidades": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| } | |||
| }, | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| } | |||
| } | |||
| }, | |||
| "required": [ | |||
| "nome", "crm" | |||
| "type": "array", | |||
| "items": { | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string" | |||
| }, | |||
| "crm": { | |||
| "type": "string" | |||
| }, | |||
| "especialidades": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| } | |||
| }, | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| } | |||
| } | |||
| }, | |||
| "required": [ | |||
| "nome", "crm" | |||
| ], | |||
| "example": [ | |||
| { | |||
| "convenios": [ | |||
| "e97f0ebc-aa16-486f-b1c6-3feb36954118" | |||
| ], | |||
| "example": [ | |||
| { | |||
| "convenios": [ | |||
| "e97f0ebc-aa16-486f-b1c6-3feb36954118" | |||
| ], | |||
| "crm": "567890", | |||
| "especialidades": [ | |||
| "9fe6bca9-7da2-4f23-a26a-c6c20872aa6c", | |||
| "f78f6439-4d14-43dd-a4d8-3ffa68ca5020" | |||
| ], | |||
| "nome": "Jonas Salk" | |||
| } | |||
| ] | |||
| } | |||
| "crm": "567890", | |||
| "especialidades": [ | |||
| "9fe6bca9-7da2-4f23-a26a-c6c20872aa6c", | |||
| "f78f6439-4d14-43dd-a4d8-3ffa68ca5020" | |||
| ], | |||
| "nome": "Jonas Salk" | |||
| } | |||
| ] | |||
| } | |||
| } | |||
| @ -1,41 +1,41 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Criar novo médico", | |||
| "description": "Cria um novo médico na base de dados usando os campos fornecidos", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "crm": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "especialidades": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "required": true | |||
| "tags":[ | |||
| "Serviços relacionados aos médicos" | |||
| ], | |||
| "summary": "Criar novo médico", | |||
| "description": "Cria um novo médico na base de dados usando os campos fornecidos", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "crm": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "especialidades": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "required": true | |||
| } | |||
| "required": true | |||
| }, | |||
| "required": [ | |||
| "nome", "crm", "especialidades", "convenios" | |||
| ], | |||
| "example": { | |||
| "nome": "Jonas Salk", | |||
| "crm": "203948", | |||
| "especialidades": ["9fe6bca9-7da2-4f23-a26a-c6c20872aa6c", "d4688e22-ee5f-45d9-8526-36d53de50986"], | |||
| "convenios": ["7ded552a-07cf-4f7b-bee4-6947944ec324"] | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "required": true | |||
| } | |||
| }, | |||
| "required": [ | |||
| "nome", "crm", "especialidades", "convenios" | |||
| ], | |||
| "example": { | |||
| "nome": "Jonas Salk", | |||
| "crm": "203948", | |||
| "especialidades": ["9fe6bca9-7da2-4f23-a26a-c6c20872aa6c", "d4688e22-ee5f-45d9-8526-36d53de50986"], | |||
| "convenios": ["7ded552a-07cf-4f7b-bee4-6947944ec324"] | |||
| } | |||
| } | |||
| @ -1,14 +1,14 @@ | |||
| { | |||
| "type": "object", | |||
| "properties": { | |||
| "insertedData": { | |||
| "type": "number" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "insertedData" | |||
| ], | |||
| "example": { | |||
| "insertedData": 3 | |||
| "type": "object", | |||
| "properties": { | |||
| "insertedData": { | |||
| "type": "number" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "insertedData" | |||
| ], | |||
| "example": { | |||
| "insertedData": 3 | |||
| } | |||
| } | |||
| @ -1,18 +1,18 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Deletar paciente", | |||
| "description": "Deleta um paciente existente na base de dados pelo UID", | |||
| "type": "object", | |||
| "properties": { | |||
| "uid": { | |||
| "type": "UID", | |||
| "required": true, | |||
| "example": "3f281bfa-1719-4557-9153-fb3b9b3886bc" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "uid" | |||
| ] | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Deletar paciente", | |||
| "description": "Deleta um paciente existente na base de dados pelo UID", | |||
| "type": "object", | |||
| "properties": { | |||
| "uid": { | |||
| "type": "UID", | |||
| "required": true, | |||
| "example": "3f281bfa-1719-4557-9153-fb3b9b3886bc" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "uid" | |||
| ] | |||
| } | |||
| @ -1,18 +1,18 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Detalhes dos pacientes", | |||
| "description": "É obtido todos os campos de detalhe do paciente especificado por nome e/ou CPF, ou uma lista de médicos caso não especificado.", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "example": "José da Silva" | |||
| }, | |||
| "cpf": { | |||
| "type": "string", | |||
| "example": "123.456.789-10" | |||
| } | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Detalhes dos pacientes", | |||
| "description": "É obtido todos os campos de detalhe do paciente especificado por nome e/ou CPF, ou uma lista de médicos caso não especificado.", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "example": "José da Silva" | |||
| }, | |||
| "cpf": { | |||
| "type": "string", | |||
| "example": "123.456.789-10" | |||
| } | |||
| } | |||
| } | |||
| @ -1,48 +1,48 @@ | |||
| { | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Criar novo paciente", | |||
| "description": "Cria um novo paciente na base de dados usando os campos fornecidos", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "cpf": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "data_de_nascimento": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "endereco": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "telefone": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "required": true | |||
| } | |||
| "tags":[ | |||
| "Serviços relacionados aos pacientes" | |||
| ], | |||
| "summary": "Criar novo paciente", | |||
| "description": "Cria um novo paciente na base de dados usando os campos fornecidos", | |||
| "type": "object", | |||
| "properties": { | |||
| "nome": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "required": [ | |||
| "nome", "cpf", "data_de_nascimento", "endereco", "telefone", "convenios" | |||
| ], | |||
| "example": { | |||
| "nome": "José da Silva", | |||
| "cpf": "123-456-789-01", | |||
| "data_de_nascimento": "1970-03-20", | |||
| "endereco": "Rua das Flores, 123, Bairro Central, São Paulo, SP, 01000-000", | |||
| "telefone": "(31) 91234-5678", | |||
| "convenios": ["7ded552a-07cf-4f7b-bee4-6947944ec324"] | |||
| "cpf": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "data_de_nascimento": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "endereco": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "telefone": { | |||
| "type": "string", | |||
| "required": true | |||
| }, | |||
| "convenios": { | |||
| "type": "array", | |||
| "items": { | |||
| "type": "string" | |||
| }, | |||
| "required": true | |||
| } | |||
| }, | |||
| "required": [ | |||
| "nome", "cpf", "data_de_nascimento", "endereco", "telefone", "convenios" | |||
| ], | |||
| "example": { | |||
| "nome": "José da Silva", | |||
| "cpf": "123-456-789-01", | |||
| "data_de_nascimento": "1970-03-20", | |||
| "endereco": "Rua das Flores, 123, Bairro Central, São Paulo, SP, 01000-000", | |||
| "telefone": "(31) 91234-5678", | |||
| "convenios": ["7ded552a-07cf-4f7b-bee4-6947944ec324"] | |||
| } | |||
| } | |||
| @ -1,11 +1,11 @@ | |||
| { | |||
| "type": "object", | |||
| "properties": { | |||
| "insertedData": { | |||
| "type": "number" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "insertedData" | |||
| ] | |||
| "type": "object", | |||
| "properties": { | |||
| "insertedData": { | |||
| "type": "number" | |||
| } | |||
| }, | |||
| "required": [ | |||
| "insertedData" | |||
| ] | |||
| } | |||