A simple API which provides the following capabilities:
- Fetch a collection of cake resources.
- Create a new cake resource.
- Download all cake resources in a JSON formatted file.
The application is currently running here: https://cake-manager-demo.herokuapp.com/
- Unit tests: ./gradlew test
- Integration tests: ./gradlew integrationTest
-
From the cake-manager root directory:
- ./gradlew clean build bootRun
-
The api will be accessible from: http://localhost:8080/
-
From the cake-manager root directory:
- ./gradlew clean build
- docker build -t cake-manager-demo .
- docker run -p 8080:8080 cake-manager-demo
-
The api will be accessible from: http://localhost:8080/
- Fetch all cake resources:
- Create new cake resource:
- curl -X POST -H "Content-Type: application/json" -d '{"title":"Cheesecake","description":"description 21","image":"image 21"}' https://cake-manager-demo.herokuapp.com/api/cakes
- Download cake resources as json file
- curl https://cake-manager-demo.herokuapp.com/api/cakes --output cakes.json
- View cake resources:
- Create new cake resource:
- https://cake-manager-demo.herokuapp.com/
- Click on 'Add Cake' link