This repo is used for Network Structures and Cloud Computing Course Assignments CSYE6225-Fall2023.
Basic spring-boot project with maven and swagger docs setup. Added Basic auth settings to the project.
- git clone https://github.com/Erlybird/webapp.git
- Install maven in your system and java 17 version JDK.
- change to project directory in terminal and run the below commands.
- mvn clean install
- mvn spring-boot:run
- check the logs for the application url.
- Default port is 8080 and runs in localhost.
- press command+c to stop the server.
- if you wish not to install maven.You can run following commands on respective OS.
- ./mvnw spring-boot:run (unix)
- ./mvnw.cmd spring-boot:run (windows)
- http://localhost:8080/healthz (health check api)
- http://localhost:8080/v1/assignments (POST -- create assignment)
- http://localhost:8080/v1/assignments (GET -- get all assignments of a user)
- http://localhost:8080/v1/assignments/{id} (GET -- get the assignment with this id)
- http://localhost:8080/v1/assignments/{id} (DELETE -- delete the assignment with this id)
- http://localhost:8080/v1/assignments/{id} (PUT -- update the assignment with this id)