Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f86a7c8
Complete APIs documentation
fatemeh-i May 10, 2026
d3b4a4d
RM unused files
fatemeh-i May 10, 2026
fe66fd7
RM unused files
fatemeh-i May 10, 2026
94664a7
Update the swagger security config
fatemeh-i May 10, 2026
260077a
Update swagger dependencies
fatemeh-i May 11, 2026
89176a8
Complete swagger description about bank account services
fatemeh-i May 11, 2026
d15f971
Complete insomnia data about bank account services
fatemeh-i May 11, 2026
e6d7d2d
Complete insomnia/swagger data about otc-rate services
fatemeh-i May 11, 2026
5206b7d
Update insomnia data about otc-rate services
fatemeh-i May 11, 2026
8fe5d2b
Update swagger data about otc-rate services
fatemeh-i May 12, 2026
fcd6956
Update swagger data about bank-account services
fatemeh-i May 12, 2026
26b7ebd
Update swagger data about deposit admin services
fatemeh-i May 12, 2026
5cf255e
Update swagger data about deposit services
fatemeh-i May 12, 2026
b6a37ea
Update swagger data about address book services
fatemeh-i May 12, 2026
66f7165
Update swagger data about currency rate services
fatemeh-i May 12, 2026
8d11704
Complete swagger description about address book services
fatemeh-i May 12, 2026
232e228
Update swagger data about bank-account services
fatemeh-i May 12, 2026
8335871
Update swagger data about currency rate services
fatemeh-i May 12, 2026
cdaaf51
Update swagger data about deposit admin services
fatemeh-i May 12, 2026
241ac08
Update swagger data about bank-account services
fatemeh-i May 12, 2026
120aad4
Update swagger data about currency rate services
fatemeh-i May 12, 2026
22d7f2f
Update swagger data about deposit admin services
fatemeh-i May 12, 2026
0492513
Update swagger data about deposit and gateway services
fatemeh-i May 12, 2026
69b8584
Update swagger data about localiztion admin services
fatemeh-i May 12, 2026
1e15f9a
Update swagger data about market services
fatemeh-i May 12, 2026
b478bb0
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 12, 2026
1ebdd8e
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 12, 2026
df19f74
Update swagger data about gateway admin services
fatemeh-i May 13, 2026
ef8bd10
Enable custom user language and fix localizations (#673)
AmirRajabii May 13, 2026
08c09e5
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 14, 2026
95f0d3e
Remove deposit service from api
fatemeh-i May 16, 2026
feba610
Update swagger data for market controller
fatemeh-i May 16, 2026
51cbd20
Tag depricated apis
fatemeh-i May 19, 2026
95c99b7
Update swagger data about order services
fatemeh-i May 19, 2026
23d72a7
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 19, 2026
f5d0e1b
Update swagger data about profile services
fatemeh-i May 20, 2026
26ce19b
Update swagger data about storage and swap services
fatemeh-i May 20, 2026
63f678e
Consider separated request body for swap history
fatemeh-i May 20, 2026
0fdabfe
Update swagger data about admin terminal controller
fatemeh-i May 24, 2026
f133f54
Update swagger data about admin transactions controller
fatemeh-i May 24, 2026
fd17426
Update swagger data about user exchange data
fatemeh-i May 25, 2026
f65bc8f
Update swagger data about user history services
fatemeh-i May 25, 2026
2900e55
Update swagger data about user history services
fatemeh-i May 25, 2026
e6d6c2c
Update swagger data about voucher services
fatemeh-i May 26, 2026
c55a3ec
Update swagger data about voucher, wallet and withdraw services
fatemeh-i May 28, 2026
a02d309
Update swagger data about bank account services
fatemeh-i May 28, 2026
1f33bd5
Update swagger data about general and user level config services
fatemeh-i May 28, 2026
dc8416f
Update swagger data about deposit admin services
fatemeh-i May 28, 2026
8dcad5e
Update swagger data about gateway admin services
fatemeh-i May 28, 2026
9892e19
Apply the kotlin style on profile services
fatemeh-i May 28, 2026
635243e
Apply the kotlin style on storage services
fatemeh-i May 28, 2026
22a8185
Update swagger data about swap services
fatemeh-i May 28, 2026
885bd24
Apply the kotlin style on terminal and tx services
fatemeh-i May 28, 2026
844e7fe
Update swagger data about user data services
fatemeh-i May 28, 2026
1ea15ca
Develop a swagger service to merge api and auth swagger data on a sin…
fatemeh-i May 29, 2026
3dc9402
Update the swagger doc service to be usable in all envs
fatemeh-i May 29, 2026
a48289c
Rm insomnia file
fatemeh-i May 30, 2026
26244ff
Handle allowed origins dynamically
fatemeh-i May 30, 2026
a82d41f
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 30, 2026
62dc33a
Log allowed origins in cors config
fatemeh-i May 30, 2026
bca148a
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 30, 2026
077383e
Merge branch 'dev' of https://github.com/opexdev/core into feature/ap…
fatemeh-i May 31, 2026
900cb6a
Setup custom server url for open apis
fatemeh-i May 31, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CorsConfig(
) {
private val logger = LoggerFactory.getLogger(CorsConfig::class.java)


@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
fun corsWebFilter(): CorsWebFilter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class OpenApiConfig() {
class OpenApiConfig(
@Value("\${app.openapi.server-url:}")
private val serverUrl: String
) {

@Bean
fun opexOpenApi(): OpenAPI {
return OpenAPI()
val openApi= OpenAPI()
.info(
Info()
.title("Opex API")
Expand All @@ -33,6 +36,16 @@ class OpenApiConfig() {
.description("JWT Bearer token")
)
)
if (serverUrl.isNotBlank()) {
openApi.servers(
listOf(
Server()
.url(serverUrl)
.description("Public API server")
)
)
}
return openApi
}
}

3 changes: 2 additions & 1 deletion api/api-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ app:
cors:
enabled: true
allowed-origins: ${ALLOWED_ORIGINS:"http://localhost:8110"}

openapi:
server-url: ${OPEN_API_SERVER_URL}
# --- Swagger / SpringDoc (env-driven) ---
springdoc:
api-docs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration(proxyBeanMethods = false)
class AuthGatewayOpenApiConfig() {
class AuthGatewayOpenApiConfig(
@Value("\${app.openapi.server-url:}")
private val serverUrl: String
) {

@Bean
fun authGatewayOpenApi(): OpenAPI {
return OpenAPI()
val openApi = OpenAPI()
.info(
Info()
.title("Opex Auth Gateway API")
Expand All @@ -32,5 +35,15 @@ class AuthGatewayOpenApiConfig() {
.description("JWT Bearer token")
)
)
if (serverUrl.isNotBlank()) {
openApi.servers(
listOf(
Server()
.url(serverUrl)
.description("Public API server")
)
)
}
return openApi
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ app:
cors:
enabled: true
allowed-origins: ${ALLOWED_ORIGINS:"http://localhost:8110"}
openapi:
server-url: ${OPEN_API_SERVER_URL}
# --- Swagger / SpringDoc (env-driven) ---
springdoc:
api-docs:
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ services:
- SWAGGER_UI_ENABLED=${SWAGGER_UI_ENABLED}
- SWAGGER_AUTH_ENABLED=${SWAGGER_AUTH_ENABLED}
- SWAGGER_AUTH_AUTHORITY=${SWAGGER_AUTH_AUTHORITY}
- ALLOWED_ORIGINS:${ALLOWED_ORIGINS}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- OPEN_API_SERVER_URL=${OPEN_API_SERVER_URL_AUTH}
volumes:
- auth-gateway-keys:/app/keys
depends_on:
Expand Down Expand Up @@ -526,7 +527,8 @@ services:
- SWAGGER_UI_ENABLED=${SWAGGER_UI_ENABLED}
- SWAGGER_AUTH_ENABLED=${SWAGGER_AUTH_ENABLED}
- SWAGGER_AUTH_AUTHORITY=${SWAGGER_AUTH_AUTHORITY}
- ALLOWED_ORIGINS:${ALLOWED_ORIGINS}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- OPEN_API_SERVER_URL=${OPEN_API_SERVER_URL_API}
depends_on:
- consul
- vault
Expand Down
Loading