File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
spotify-web-api-generator-open-api
src/main/java/de/sonallux/spotify/generator/openapi Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11openapi : 3.0.1
22info :
33 title : Spotify Web API
4+ contact :
5+ url : https://github.com/sonallux/spotify-web-api
46 version : 2021.4.2
57externalDocs :
68 description : Find more info on the official Spotify Web API Reference
Original file line number Diff line number Diff line change 44import de .sonallux .spotify .core .SpotifyWebApiUtils ;
55import de .sonallux .spotify .core .model .*;
66import io .swagger .v3 .oas .models .*;
7+ import io .swagger .v3 .oas .models .info .Contact ;
78import io .swagger .v3 .oas .models .info .Info ;
89import io .swagger .v3 .oas .models .media .*;
910import io .swagger .v3 .oas .models .parameters .RequestBody ;
@@ -38,13 +39,13 @@ public OpenApiGenerator() {
3839 public OpenAPI generate (SpotifyWebApi apiDocumentation ) {
3940 this .openAPI = new OpenAPI ();
4041 this .openAPI
41- .externalDocs (new ExternalDocumentation ()
42- .url (apiDocumentation .getApiDocumentationUrl ())
43- .description ("Find more info on the official Spotify Web API Reference" )
44- )
42+ .externalDocs (generateExternalDocumentation (apiDocumentation .getApiDocumentationUrl ()))
4543 .info (new Info ()
4644 .title ("Spotify Web API" )
4745 .version (VersionProvider .getVersion ())
46+ .contact (new Contact ()
47+ .url ("https://github.com/sonallux/spotify-web-api" )
48+ )
4849 )
4950 .servers (List .of (new Server ().url (apiDocumentation .getEndpointUrl ())))
5051 .components (new Components ()
You can’t perform that action at this time.
0 commit comments