Skip to content

Commit

Permalink
docs: API doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-vavdiya authored and maximilianschmidt-zf committed Jul 18, 2023
1 parent bdaec00 commit ccfb8f6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
25 changes: 12 additions & 13 deletions docs/openapi_v002.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
"openapi": "3.0.1",
"info":
{
"title": "Managed Identity Wallets API",
"description": "Managed Identity Wallets API",
"contact":
{
"name": "Eclipse Tractus-X",
"url": "https://projects.eclipse.org/projects/automotive.tractusx",
"email": "[email protected]"
},
"license":
{
"name": "Apache 2.0",
"url": "https://github.com/eclipse-tractusx/managed-identity-wallets/blob/develop/LICENSE"
},
"title": "Managed Identity Wallets API",
"description": "Managed Identity Wallets API",
"termsOfService": "https://www.eclipse.org/legal/termsofuse.php",
"contact": {
"name": "Eclipse Tractus-X",
"url": "https://projects.eclipse.org/projects/automotive.tractusx",
"email": "[email protected]"
},
"license": {
"name": "Apache 2.0",
"url": "https://github.com/eclipse-tractusx/managed-identity-wallets/blob/develop/LICENSE"
},
"version": "0.0.1"
},
"servers":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@

import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -53,9 +55,22 @@ public class OpenApiConfig {
@Bean
public OpenAPI openAPI() {
Info info = new Info();
info.setTitle("MIW API");
info.setDescription("MIW API");
info.setTitle("Managed Identity Wallets API");
info.setDescription("Managed Identity Wallets API");
info.termsOfService("https://www.eclipse.org/legal/termsofuse.php");
info.setVersion("0.0.1");

Contact contact = new Contact();
contact.name("Eclipse Tractus-X");
contact.email("[email protected]");
contact.url("https://projects.eclipse.org/projects/automotive.tractusx");
info.contact(contact);

License license = new License();
license.name("Apache 2.0");
license.url("https://github.com/eclipse-tractusx/managed-identity-wallets/blob/develop/LICENSE");
info.license(license);

OpenAPI openAPI = new OpenAPI();
if (Boolean.TRUE.equals(properties.enabled())) {
openAPI = enableSecurity(openAPI);
Expand Down

0 comments on commit ccfb8f6

Please sign in to comment.