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

https://github.com/alpha74/miniblog_springboot

MiniBlog implementation using Spring Boot. Backend APIs only.
https://github.com/alpha74/miniblog_springboot

java rest-api spring spring-boot

Last synced: about 2 months ago
JSON representation

MiniBlog implementation using Spring Boot. Backend APIs only.

Awesome Lists containing this project

README

          

# MiniBlog Backend APIs

## Spring Boot with REST

#### [Notes](NOTES.md)

### APIs

#### GET /healthStatus

- Health Check API
- Returns String response: `status:OK`

#### GET /healthStatusBean
- Health Check API
- Returns JSON response:

```
{"status":"OK"}
```

#### GET /users

- Returns all users.
- Returns JSON response:

```
[
{"id":1,"name":"Jackson","birthDate":"2022-08-05T18:19:27.767+00:00"},
{"id":2,"name":"Johnson","birthDate":"2022-08-05T18:19:27.767+00:00"},
{"id":3,"name":"McDonald","birthDate":"2022-08-05T18:19:27.767+00:00"}]
```

#### GET /users/{id}

- Returns data of single users, else null.
- Returns JSON response:

```
{"id":1,"name":"Jackson","birthDate":"2022-08-06T07:42:11.033+00:00"}
```