Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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`

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
```