*Doctor Seam Health
NOTE: All Request should have an Accepts and Content-Type header with the value application/json
Api Url is (Seam Health Consult)[https://obscure-springs-41531.herokuapp.com/]
{id} is a placeholder or variable that should be replace with an Long value during request
Route | Http Method | Description | Sample Body | Options |
---|---|---|---|---|
/ | GET | API Entry | ||
api/doctor/entries | GET | Retrieve all records | ?email=value | |
api/doctor/detail/{id} | GET | Retrieve single record | ||
api/doctor/remove/{id} | GET | Remove record | ||
api/doctor/create | POST | Add new record | { "firstName": "Moyegun", "lastName": "Adeola", "emailAddress": "[email protected]", "address": "Ademola Adetokunbo Street, Abuja", "lga": "FCT", "phoneNumber": "+2349022035587", "state": "Federal Capital Territory" } |
|
api/doctor/update/{id} | POST | Update a record | { "firstName": "Mayegun", "lastName": "Ademulegun", "emailAddress": "[email protected]", "address": "Ademola Adetokunbo Street, Abuja", "lga": "FCT", "phoneNumber": "+2349022035587", "state": "Ogun State" } |
Alternatives and Recommendations
Could use Spring Vault to hide environmental and application properties
For data access - spring jdbc, spring data jpa implementing CrudRepository or JpaRepository
For data update - @DynamicUpdate or @Query @Modifying