Spring boot 2.0 rest application made during Fii practic 2018 Yonder java training sessions.
You can download/clone/fork this project for teaching purposes.
- Download: https://github.com/MariusDanutIancu/FiiPracticSpring2018/archive/master.zip
- Clone:
git clone https://github.com/MariusDanutIancu/FiiPracticSpring2018.git
- JAVA jdk8: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Maven: https://maven.apache.org/download.cgi
- Postgre 9.4.17: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
- Python 3.5+ to run scripts: https://www.python.org/downloads/
- Intellij recommended IDE: https://www.jetbrains.com/idea/download/#section=windows
- git bash: https://git-scm.com/downloads
- JDK Instalation: (https://www.wikihow.com/Install-the-Java-Software-Development-Kit)
- java_home varible: (https://www.mkyong.com/java/how-to-set-java_home-on-windows-10/)
- Maven instalation: (https://www.mkyong.com/maven/how-to-install-maven-in-windows/)
You can test api requests at the following link on a local server: http://localhost:8080/api/<api_version>/<resource>
- Doctor get request (http://localhost:8080/api/0.1/doctors)
- Doctor get request on id: (http://localhost:8080/api/0.1/doctors/<doctor_id>)
- Doctor post request: (http://localhost:8080/api/0.1/doctors)
{
"address": {
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"state": "string",
"street": "string"
},
"email": {
"email": "string"
},
"firstName": "string",
"function": "string",
"lastName": "string",
"phoneNumber": {
"phoneNumber": "string"
}
}
- Patient get request (http://localhost:8080/api/0.1/patients)
- Patient get request on id: (http://localhost:8080/api/0.1/patients/<patient_id>)
- Patient post request: (http://localhost:8080/api/0.1/patients)
{
"address": {
"city": "string",
"country": "string",
"county": "string",
"postal_code": "string",
"state": "string",
"street": "string"
},
"age": 0,
"email": {
"email": "string"
},
"firstName": "string",
"lastName": "string",
"phoneNumber": {
"phoneNumber": "string"
}
}
- Appointment get request (http://localhost:8080/api/0.1/appointments)
- Appointment get request on id: (http://localhost:8080/api/0.1/appointments/<appointment_id>)
- Appointment get request with filter: (http://localhost:8080/api/0.1/appointments?doctorid=<doctor_id>)
- Future appointment get request: (http://localhost:8080/api/0.1/appointments/future_appointments)
- Future appointment get request with filter: (http://localhost:8080/api/0.1/appointments/future_appointments/filter?doctorid=<doctor_id>)
- Appointment post request: (http://localhost:8080/api/0.1/appointments)
{
"cancel": true,
"cause": "string",
"endTime": "2018-04-16T14:07:34.489Z",
"startTime": "2018-04-16T14:07:34.489Z"
}
- Appointment put future appointments request: http://localhost:8080/api/0.1/appointments/cancel_appointment)
{
"appointment_id": 0,
"cancel": true,
"doctor_id": 0,
"patient_id": 0
}
Placeholder.
- Rest:
- Spring:
- Hibernate:
- Fork
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Placeholder.