Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An example of an application for working with the microservice architecture based on the Spring Boot / Cloud & Netflix stack

Notifications You must be signed in to change notification settings

Paz1506/cloud-example

Repository files navigation

Build Status codebeat badge

Spring cloud example

The example of an application for working with the microservice architecture based on the Spring Boot / Cloud & Netflix stack:

  • Config server & clients
  • Eureka discovery server & clients
  • Zuul gateway
  • Feign client
  • Spring OAuth2 authorization server

Note: Configuration files for config-service are here

API

The list of available API endpoints can be seen in Swagger for services:

Example

  1. Start all microservices: config server must be started by the first.

  2. Get OAuth token (user or admin):

CURL: curl.exe -X POST -u my-client:my-secret -d "username=admin&password=123456&grant_type=password" http://localhost:8055/oauth/token**

  1. Send a request with the access token:

CURL: curl.exe -X GET --header "Authorization: Bearer 6b90765e-8d51-4d27-9d98-ab21d8527751" http://localhost:8078/models/dto/00000000-0000-0000-0000-000000000000

About

An example of an application for working with the microservice architecture based on the Spring Boot / Cloud & Netflix stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /