-
Clone the application with
git clone https://github.com/wallacebenevides/star-wars-api.git
-
To run the application with Makefile, please use the following command:
make
Note: By default the port number its being run on is 8080.
-
To stop the application, please use the following command:
make stop
URL - *localhost:8080/api/planets*
Method - GET
URL - *localhost:8080/api/planets/{id}*
Method - GET
URL - *localhost:8080/api/planets/findByName?name={name}*
Method - GET
URL - *localhost:8080/api/planets*
Method - POST
Body - (content-type = application/json)
{
"name": "Haruun Kal",
"climate": "temperate",
"terrain": "toxic cloudsea, plateaus, volcanoes",
"films": 0
}
URL - *localhost:8080/api/planets*
Method - DELETE
Body - (content-type = application/json)
{
"id": "..."
}
To run all the unit test cases, please use the following command:
make test