Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 48 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ spring:
predicates:
- Path=/api/oauth2/**
filters:
- RewritePath=/api/oauth2/(?<segment>.*), /oauth2/${segment}
- RewritePath=/api/(?<segment>.*),/${segment}

- id: login-auth
uri: http://localhost:8080
predicates:
- Path=/api/login/**
filters:
- RewritePath=/api/login/(?<segment>.*), /login/${segment}
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-user-endpoint
uri: "${USERS_BASE_URL}"
Expand All @@ -67,4 +67,49 @@ spring:
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/user,/user
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-all-assets-endpoint
uri: "${CORE_BASE_URL}"
predicates:
- Path=/api/assets
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-asset-endpoint
uri: "${CORE_BASE_URL}"
predicates:
- Path=/api/assets/*
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-asset-price-endpoint
uri: "${CORE_BASE_URL}"
predicates:
- Path=/api/assets/*/price
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-news-endpoint
uri: "${MARKET_FEELING_BASE_URL}"
predicates:
- Path=/api/news
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/(?<segment>.*),/${segment}

- id: get-decisions-endpoint
uri: "${MARKET_FEELING_BASE_URL}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this must be the one for decisions, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right

predicates:
- Path=/api/decisions
- Method=GET
filters:
- ClaimToHeader=userId,X-User-Id
- RewritePath=/api/(?<segment>.*),/${segment}