This a simple Spring Boot, H2, JPA, Hibernate Restful CRUD REST API
-
Java - 1.8.x
-
Maven - 3.x.x
git clone https://github.com/asopiah/Notes-API.git
Just go to the root directory of the application and type the following command to run it.
mvn clean install
Then ..
mvn spring-boot:run
The app will start running at http://localhost:8080
The app defines following CRUD APIs.
GET /api/notes
POST /api/notes
GET /api/notes/{noteId}
PUT /api/notes/{noteId}
DELETE /api/notes/{noteId}
You can test them using postman or any other rest client
Me I am using RestLet Client chrome extension
I have deployed this rest API on Heroku
Use below endpoints to test CRUD operations live without running the application localy. You only require Postman or any other rest client.
GET https://sopia-notes-api.herokuapp.com/api/notes --Get all the notes
POST https://sopia-notes-api.herokuapp.com/api/notes -- Create a new note
GET https://sopia-notes-api.herokuapp.com/api/notes/{noteId} -- Get a specefic note
PUT https://sopia-notes-api.herokuapp.com/api/notes/{noteId} -- Update a given note
DELETE https://sopia-notes-api.herokuapp.com/api/notes/{noteId} -- Delete a given note
Please open an issue if you encounter an error while running or using this code
Please make sure to update tests as appropriate.
clone, use, modify and use as you may wish to