This is a test project hosting all the auto-generated and user-created tests suites for an example Spring REST application that is currently running on AWS.
This application is packaged as a WAR which has Tomcat 8 embedded. No Tomcat or JBoss installation is necessary. You run it using the java -jar command.
mvn clean package
java -jar -Dspring.profiles.active=test target/spring-boot-rest-example-0.5.0.war
OR
mvn spring-boot:run -Drun.arguments="spring.profiles.active=test"
Method | Endpoint | Parameters | Response Messages |
---|---|---|---|
GET | /example/v1/hotels | page, size | 401 (Unauthorized), 403 (Forbidden), 404 (Not Found) |
POST | /example/v1/hotels | hotel | 201 (Created), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found) |
DELETE | /example/v1/hotels/{id} | id | 204 (No Content), 401 (Unauthorized), 403 (Forbidden) |
GET | /example/v1/hotels/{id} | id | 401 (Unauthorized), 403 (Forbidden), 404 (Not Found) |
PUT | /example/v1/hotels/{id} | id, hotel | 201 (Created), 204 (No Content), 401 (Unauthorized), 403 (Forbidden), 404 (Not Found) |