Para acessar a versão em Português do Brasil, basta clicar aqui! 🇧🇷
This project was created for example of structure for api testing using Java and Rest-Assured inside a springboot project.
mvn spring-boot:run
This command will be created the database in memory, add data inside the database and able access to endpoint.
- API baseurl: localhost:8080/api/
- Swagger documentation: http://localhost:8080/swagger-ui/index.html
- GET /tutorials:
- should be return with success all tutorials
- check 200 status code
- check schema object
- should be return NO CONTENT when the list is empty
- dependencies: delete all tutorials before call GET /tutorials
- check 204 status code
- check empty body
- should be return with success all tutorials
- GET /tutorials/{id}:
- should be return with success a single tutorial
- check 200 status code
- check schema object for one tutorial
- should be return a error when put a nonexistance id.
- check 404 not found status
- check schema object for the error
- should be return with success a single tutorial
- DELETE /tutorials:
- should be deleted all tutorials with success
- check 204 status code
- check doesn't have body
- should be return error when try delete all tutorials without tutorails registered
- check 500 status code
- check doesn't have body
- should be deleted all tutorials with success
- DELETE /tutorials/{id}:
- should be deleted with success
- check 204 status code
- check doesn't have body
- should be return error when try to delete a tutorials with nonexistance id.
- check 500 status code
- schema error schema
- should be deleted with success