https://github.com/mschaeffner/api-gateway-spring-example
This is a simple Spring Boot application that acts as an API gateway.
https://github.com/mschaeffner/api-gateway-spring-example
Last synced: 26 days ago
JSON representation
This is a simple Spring Boot application that acts as an API gateway.
- Host: GitHub
- URL: https://github.com/mschaeffner/api-gateway-spring-example
- Owner: mschaeffner
- License: apache-2.0
- Created: 2016-04-21T23:33:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T08:14:00.000Z (about 10 years ago)
- Last Synced: 2025-02-26T10:15:39.888Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# api-gateway-spring-example
This is a simple Spring Boot application that acts as an API gateway. It has only one endpoint.
## GET /users/{userId}
Calls the following endpoints at [http://jsonplaceholder.typicode.com](http://jsonplaceholder.typicode.com) API and combines their results into a single JSON output:
* http://jsonplaceholder.typicode.com/users/{userId}
* http://jsonplaceholder.typicode.com/posts?userId={userId}
## How to run
* mvn spring-boot:run
* go to [http://localhost:8080/users/1](http://localhost:8080/users/1) to see result for user with id 1
## Technologies used
* Spring Boot and Spring Web
* Retrofit
* Maven