Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manub/example-spring-boot-webservice

Example of a RESTful web service using Spring Boot - with an integration test.
https://github.com/manub/example-spring-boot-webservice

Last synced: about 4 hours ago
JSON representation

Example of a RESTful web service using Spring Boot - with an integration test.

Awesome Lists containing this project

README

        

# Example Spring Boot web service

Purpose of this small project is to highlight how to create a RESTful web service using Spring Boot and how to test it using the Spring `MockMVC` class as (at least for me!) from the documentation is not 100% clear.

## Instructions

`./gradlew build`

will build the project and run all the tests (in this case, `GreetingIntegrationTest`).

Have a look at `GreetingIntegrationTest` to see usage of `MockMVC`.

For anything, feel free to contact me at