Open cabralpinto opened 1 year ago
http://localhost:8080/api/user/list
{
"message": "Successfully retrieved a user list",
"info": [
{
"id": 7,
"name": "terapeuta",
"email": "terapeuta@student.dei.uc.pt",
"password": "$argon2id$v=19$m=65536,t=3,p=4$JFCmFlJWXwAphuYAhCai7g$VNx8bfanVaqJ+s5+xuRgEde9L+T3Fx1e2gOh6MEP+CI",
"address": "Rua dos Bananas",
"birth_date": "1990-11-21T00:00:00.000Z",
"photo": null,
"phone_number": 9219231942,
"verified": true,
"active": true,
"approved": true,
"tax_number": 123124123,
"patient": null,
"intern": null,
"therapist": {
"extern": false,
"license": "blabla",
"health_system": "blabla",
"person_id": 7
},
"accountant": null,
"guard": null
},
{
"id": 8,
"name": "utente",
"email": "utente@student.dei.uc.pt",
"password": "$argon2id$v=19$m=65536,t=3,p=4$Rw1Q70wpvgkSAvTGVdZjNw$apRSJesVBO67qvzuShhEuv2UDoJcVAN+OFMgDGlSt5o",
"address": "Rua dos Bananas",
"birth_date": "1990-11-21T00:00:00.000Z",
"photo": null,
"phone_number": 9219231932,
"verified": true,
"active": true,
"approved": true,
"tax_number": 123124124,
"patient": {
"health_number": 12231,
"request": "burro",
"remarks": "burro e parvo",
"patienttype_id": 2,
"person_id": 8,
"school": [
{
"id": 2,
"name": "escola dos burros",
"course": "burrice",
"grade": 18,
"patient_person_id": 8
}
],
"profession": [
{
"id": 2,
"name": "proxeneta",
"patient_person_id": 8
}
]
},
"intern": null,
"therapist": null,
"accountant": null,
"guard": null
},
{
"id": 9,
"name": "accountant",
"email": "accountant@student.dei.uc.pt",
"password": "$argon2id$v=19$m=65536,t=3,p=4$zdwyAd+QiCtBnSBuXmIF3w$DsxVGMWOUlGDFdlNzXKwqYbTldaT8E2eeKMUEm0pXrw",
"address": "Rua dos Bananas",
"birth_date": "1990-11-21T00:00:00.000Z",
"photo": null,
"phone_number": 9213231942,
"verified": true,
"active": true,
"approved": true,
"tax_number": 123124223,
"patient": null,
"intern": null,
"therapist": null,
"accountant": {
"person_id": 9
},
"guard": null
},
{
"id": 10,
"name": "guard",
"email": "guard@student.dei.uc.pt",
"password": "$argon2id$v=19$m=65536,t=3,p=4$oWeW39sH/xTO0nXVOFR2EQ$w3SLdniLiw3UIZwSji5macBZcsDRkre1MzXZ7W3SO68",
"address": "Rua dos Bananas",
"birth_date": "1990-11-21T00:00:00.000Z",
"photo": null,
"phone_number": 9313231942,
"verified": true,
"active": true,
"approved": true,
"tax_number": 123124223,
"patient": null,
"intern": null,
"therapist": null,
"accountant": null,
"guard": {
"person_id": 10
}
},
{
"id": 11,
"name": "intern",
"email": "intern@student.dei.uc.pt",
"password": "$argon2id$v=19$m=65536,t=3,p=4$I4wcu1KvHXNz8ur1L5eKBg$EF9CoOAycyk9wzIquFNmThIlbHYkj2N5wdDgxE75CFc",
"address": "Rua dos Bananas",
"birth_date": "1990-11-21T00:00:00.000Z",
"photo": null,
"phone_number": 9313231942,
"verified": true,
"active": true,
"approved": true,
"tax_number": 1233124223,
"patient": null,
"intern": {
"person_id": 11
},
"therapist": null,
"accountant": null,
"guard": null
}
]
}
Tbm há o http://localhost:8080/api/user/get-all-therapists e o http://localhost:8080/api/user/get-all-interns
que dão os dados:
e
Formato do output:
[{name: string, email: string, specialty: string}, ...]