Title | Description | Author | Tags | Created |
---|---|---|---|---|
ApiSpringGradleMongo |
API example using Spring, Gradle and MongDB |
Eloi Bilek |
gradle, restful, api, java, spring, mongodb |
2016 Abr 11 |
==============================
It 's a very simple example of an RestFul API, CRUD of User. Using:
- Java 8
- Gradle 2.12
- Spring 4
- MongoDB 3.2.4
- Tomcat 8
- Eclipse Java EE IDE - Version: Mars.1 Release (4.5.1)
This project was started with: New > Gradle > Project Gradle.
Using the plugin (Add in Eclipse Marketplace).
To run the project in Tomcat server linked in Eclipse, set the Project Facets in: ApiSpringGradleMongo > Properties > Project Facets.
... And add external dependencies on: ApiSpringGradleMongo > Properties > Deployment Assembly.
After importing the project to the Eclipse workspace, run build in: ApiSpringGradleMongo > Gradle > Refresh Gradle Project. Or select task (assemble, build...) in Gradle Tasks perspective.
In Tomcat server, add the project, click Publish, make sure synchronized. Start with Play or Debug.
To test requests (post, get, put and delete), I use the following plugin for chrome:
Request example.
Response example.