Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding new prod profile #141

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
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
729 changes: 350 additions & 379 deletions openapi/openapi-node-v1.json

Large diffs are not rendered by default.

813 changes: 389 additions & 424 deletions openapi/openapi-node-v2.json

Large diffs are not rendered by default.

922 changes: 922 additions & 0 deletions openapi/openapi-v1-dev-uat.json

Large diffs are not rendered by default.

1,136 changes: 344 additions & 792 deletions openapi/openapi-v1.json

Large diffs are not rendered by default.

813 changes: 389 additions & 424 deletions openapi/openapi-v2.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ springdoc.group-configs[2].paths-to-match=/**/fees,/info
springdoc.group-configs[3].group=node_v2
springdoc.group-configs[3].displayName=API AFM-Calculator for node v2
springdoc.group-configs[3].paths-to-match=/**/multi,/info
springdoc.group-configs[4].group=v1_prod
springdoc.group-configs[4].displayName=API AFM-Calculator v1 Production
springdoc.group-configs[4].paths-to-match=/**/fees,/info

# Server
server.servlet.context-path=/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ class OpenApiGenerationTest {

@Test
void swaggerSpringPlugin() throws Exception {
saveOpenAPI("/v3/api-docs/v1/", "openapi-v1.json");
saveOpenAPI("/v3/api-docs/v1/", "openapi-v1-dev-uat.json");
saveOpenAPI("/v3/api-docs/v2/", "openapi-v2.json");
saveOpenAPI("/v3/api-docs/node_v1/", "openapi-node-v1.json");
saveOpenAPI("/v3/api-docs/node_v2/", "openapi-node-v2.json");
saveOpenAPI("/v3/api-docs/v1_prod/", "openapi-v1.json");
}

private void saveOpenAPI(String fromUri, String toFile) throws Exception {
Expand Down
5 changes: 4 additions & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ azure.storage.connection=AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqF
table.issuer-range=issuerrangetable

# Business config
payment.amount.threshold=0
payment.amount.threshold=0

# PSP Poste
pspPoste.id=testIdPspPoste
Expand All @@ -62,3 +62,6 @@ springdoc.group-configs[2].paths-to-match=/**/fees,/info
springdoc.group-configs[3].group=node_v2
springdoc.group-configs[3].displayName=API AFM-Calculator for node v2
springdoc.group-configs[3].paths-to-match=/**/multi,/info
springdoc.group-configs[4].group=v1_prod
springdoc.group-configs[4].displayName=API AFM-Calculator v1 Production
springdoc.group-configs[4].paths-to-match=/**/fees,/info
Loading