Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rodolfobandeira/comment-store-app-springboot

Simple Microservice using SpringBoot.
https://github.com/rodolfobandeira/comment-store-app-springboot

java microservice microservices sample-microservice spring spring-boot

Last synced: about 1 month ago
JSON representation

Simple Microservice using SpringBoot.

Awesome Lists containing this project

README

        

# Sample Microservice using SpringBoot.

`mvn springboot:run`

---

```
Basic Auth:

Username: admin
Password: password
```

---

`/create` POST

Body:
```
comment: 'foo'
pageId: 'abc123'
emailAddress: [email protected]
username: rodolfo
```

---

`/list/{id}` GET

```
{
"id": "ac8682c3-79d3-47f6-a6c5-5c5869c00ea7",
"username": "rodolfo",
"emailAddress": "[email protected]",
"comment": "Hi test comment One!!",
"created": 1492657983209
}
```
---

`/listall` GET

```
[
{
"id": "ac8682c3-79d3-47f6-a6c5-5c5869c00ea7",
"username": "rodolfo",
"emailAddress": "[email protected]",
"comment": "Hi test comment One!!",
"created": 1492657983209
},
{
"id": "3243ac76-d47c-4886-8494-967137fb44d7",
"username": "rodolfo",
"emailAddress": "[email protected]",
"comment": "Hi test comment One!!",
"created": 1492657989762
}
]
```