amjadafanah / Spring-REST-Example-3

This is a project for testing the APIs of a Spring REST Hotels app example
0 stars 1 forks source link
FX Labs

Automated API Testing & Security for the Spring REST Hotels App Example

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.

How to Run the Spring REST Hotels App Example

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.

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"

Supported REST APIs

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)