Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/manub/example-spring-boot-webservice
- Owner: manub
- Created: 2014-03-17T15:30:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-17T16:43:19.000Z (over 10 years ago)
- Last Synced: 2023-07-07T19:20:47.388Z (over 1 year ago)
- Language: CSS
- Size: 8.68 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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