embl-person-manage-rest-service
- API version: 1.0
- Build date: 2021-02-11T12:16:25.959+13:00[Pacific/Auckland]
EMBL API
Demo repository for managing persons using in memory storgae
Building the project requires:
- Docker
- Maven
Execute below command from home directory of project
mvn spring-boot:runAt first generate the JAR by executing:
mvn clean packageJAR will be generated in target folder of the project
Docker image will be generated by executing below command from home directory of project
docker build -t embl/embl-person-manage-rest-service .Verify image is generated by executing below command
docker imagesExecute the below command to create container
docker run -p 8080:8080 -t embl/embl-person-manage-rest-serviceBaseUrl for all the endpoints will be http://hostname:8080
All the endpoints are secured using basic authentication, so Authorization header needs to be sent with all the requests.
Username: admin
Password: password
more details for all the endpoints are available in openAPI specs
All URIs are relative to http://hostname:8080
| Method | HTTP request | Description |
|---|---|---|
| createPerson | POST /api/v1/persons | create person |
| deletePerson | DELETE /api/v1/persons/{personId} | delete person by personId |
| fetchAllPersons | GET /api/v1/persons | fetch all the persons |
| fetchPerson | GET /api/v1/persons/{personId} | fetch person by personId |
| updatePerson | PUT /api/v1/persons/{personId} | update person by personId |
Sahil Malhotra