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

https://github.com/rmkanda/sample-api-service

Sample Spring API for testing
https://github.com/rmkanda/sample-api-service

sample security spring-boot vulnerable-app

Last synced: about 1 year ago
JSON representation

Sample Spring API for testing

Awesome Lists containing this project

README

          

# Sample Application with REST API Endpoints

Sample api application to do CURD operations on users data
(Spring, Java 17, In Memory Database)

## Building the application

### Gradle

```
./gradlew build

java -jar build/libs/UserManager-0.0.1-SNAPSHOT.jar
```

### Maven

```
./mvnw package

java -jar target/UserManager-0.0.1-SNAPSHOT.jar
```

## API Endpoints

- GET http://localhost:8080/users
- POST http://localhost:8080/users
- GET http://localhost:8080/users/{id}
- PUT http://localhost:8080/users/{id}
- DELETE http://localhost:8080/users/{id}

## API Documentation

http://localhost:8080/swagger-ui/index.html
http://localhost:8080/v3/api-docs