Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeantessier/micronaut-mongo-sync-example
A trivial test to show Micronaut in Groovy using `mongo-sync`
https://github.com/jeantessier/micronaut-mongo-sync-example
Last synced: about 1 month ago
JSON representation
A trivial test to show Micronaut in Groovy using `mongo-sync`
- Host: GitHub
- URL: https://github.com/jeantessier/micronaut-mongo-sync-example
- Owner: jeantessier
- Created: 2021-11-03T20:21:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-17T23:49:44.000Z (about 1 month ago)
- Last Synced: 2024-11-18T00:32:41.697Z (about 1 month ago)
- Language: Groovy
- Size: 302 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Micronaut `mongo-sync` Example
A sample Micronaut app that uses MongoDB and the `mongo-sync` plugin.
Based on [this guide](https://guides.micronaut.io/latest/micronaut-mongodb-synchronous-gradle-java.html).
## To Run
```bash
./gradlew run
```## Sample Calls
To create an entity:
```bash
http :8080/fruits name=Pear
```Or sometimes:
```bash
http :8080/fruits fruit:='{"name": "Kiwi"}'
```To list all entities:
```bash
http :8080/fruits
```