william-ribeiro / api-healthy-mind Goto Github PK
View Code? Open in Web Editor NEWAPI of the web system that aims to connect Psychologists/Psychiatrists with their patients
Home Page: https://api-healthy-mind.herokuapp.com/api-docs
API of the web system that aims to connect Psychologists/Psychiatrists with their patients
Home Page: https://api-healthy-mind.herokuapp.com/api-docs
Ajuste 1:
É necessário ajustar a resposta do endpoint POST /signin?type=patient
{ "message": "Password must be changed", "token": "" }
Para trazer o id do usuário
{ "message": "Password must be changed", "token": "", "id": "f0b5bc18-4fec-4ca1-a950-db1be8c309cf", "roleId": 2, }
Que será necessário para alterar a senha em:
PUT /patients/update/{patientId}
Ajuste 2:
Permitir que PUT /patients/update/{patientId}
não necessite alterar a senha uma primeira vez para alterar os dados do usuário.
Verificar erro {"message":"No entity column \"patientId\" was found.","token":null}
incluir os campos:
{ roleId: integer NOT NULL, document varchar NULL, gender: varchar NULL, birthDate: varchar NULL, addressId: integer NULL, phone varchar NULL, professionalRecord: varchar NULL}
{ roleId: integer NOT NULL, password: varchar NOT NULL, }
Cenário atual em GET /patients:
{
"addressId": 1,
"name": "Sample patient",
...
}
Normalizar o endereço {address} de paciente, trazendo os dados do endereço em lugar de apenas o {addressId}.
Cenário ideal:
{
"address": {
"street": "",
"number": 123,
"postalCode": 05724005,
...
},
"name": "Sample patient",
...
}
GET /sessions/{patientId}
{
"response": [
{
"id": 2,
"createdAt": "2022-09-21T00:40:48.961Z",
"updatedAt": "2022-09-21T00:40:48.961Z",
"patientId": "{patientId}",
"status": "agendada",
"subject": "ASD",
"duration": "2022-09-20T03:02:00.036Z",
"type": "individual",
"enabled": true,
"appointmentDate": "2022-09-21T03:00:00.000Z",
"service": "remote",
}
]
}
OBS.: Ordenado por updatedAt. Filtrar por status = closed
{ resourceId: integer NOT NULL, mode: varchar NOT NULL }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.