-
clone the repository using the code below
git clone https://github.com/OluwasegunA/bookInterviewProject.git
-
create a branch for test on your system and on the repository online
-
checkout to your newly created branch
-
build the project.
-
create your application-dev.properties file using the application-test.properties as a sample
-
edit the application-dev.properties file by replacing port,username,db and password to your own mysql connection and database details
-
create your sql database using the database name from 5. above e.g "interview_project_db"
-
You can check implemented API endpoints with the swagger UI configured in the app with http://localhost:8080/swagger-ui/#/ after running the app
-
All API end points use the BaseResponse object as thier response payload, set the status code, description and data where necessary. errors gotten from exceptions would be put in the errors object during runtime. see example response from getting the user types below
{ "statusCode": 200, "description": "user types found succesfully", "data": [ { "id": 1, "name": "Member" }, { "id": 2, "name": "Guest" } ], "errors": null }
-
setting
HttpServletResponse.SC_OK (200)
as the statusCode in the response payload for all successfull andHttpServletResponse.SC_BAD_REQUEST (400)
for all failed operations. only usesHttpServletResponse.SC_INTERNAL_SERVER_ERROR (500)
when you try to catch an internal server error during an operation.
oluwaseguna / bookinterviewproject Goto Github PK
View Code? Open in Web Editor NEWThis is a REST API application for a Book App for an Interview at Wizer done with SpringBoot