Skip to content

jcavat/hedidata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Therapists management system

Run mongodb with docker-compose:

docker-compose up -d

Create db-users database and users collection with mongo-express at http://localhost:8081

Run the server with sbt run and try:

post a therapist:

curl -H "Content-Type: application/json" -H "Authorization: Bearer ABCD" http://localhost:8080/therapists -X POST -d '{"firstName": "Marc", "lastName": "Champion", "email": "toto@toto.com"}'

post a patient:

curl -H "Content-Type: application/json" -H "Authorization: Bearer ABCD" http://localhost:8080/patients -X POST -d '{"firstName": "David", "lastName": "Hoffman", "address": "ch. étangs 3", "therapists": [], "consultations": []}'

get all therapists:

curl -H "Content-Type: application/json" -H "Authorization: Bearer ABCD" http://localhost:8080/therapists