-
Notifications
You must be signed in to change notification settings - Fork 0
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
Set up API client code generation #121
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
345d7d1
Add dependencies needed
michpohl a596f35
Add config and script files to run openapi-generator
michpohl 0e26e2d
Adjust run-ktlint.sh and the pre-commit hook to not accidentally anal…
michpohl aca0a11
Run ktlint -F after generation to clean up imports
michpohl 7405641
Add config json file to tell generate-api-files.py what to do
michpohl bea26ad
Add generated files
michpohl 6e1d3c2
Add networking classes to provide a configured Retrofit instance
michpohl 9573a62
Clear generated dir before generation
michpohl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/ApiClient.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Albums.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Artists.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Playlists.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Providers.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/SearchResults.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Tracks.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserEntitlements.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserPublicProfilePicks.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserPublicProfiles.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/UserRecommendations.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Users.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/apis/Videos.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemResourceIdentifier.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemResourceIdentifierMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationship.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsItemsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/AlbumsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersRelationship.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersResourceIdentifier.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ArtistsTrackProvidersResourceIdentifierMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemExternalLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemImageLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/CatalogueItemVideoLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorObject.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ErrorObjectSource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ExternalLinkMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ImageLinkMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/Links.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/MultiDataRelationshipDoc.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsExternalLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsImageLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsItemsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsOwnersRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsOwnersRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PlaylistsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/PromptColors.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ProvidersSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/ResourceIdentifier.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsTopHitsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SearchResultsTopHitsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/SingletonDataRelationshipDoc.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationshipsDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksRelationshipsDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/TracksSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UpdateUserPublicProfilePicksRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserEntitlementsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksItemRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksItemRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilePicksResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesExternalLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesExternalLinkMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesImageLink.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserPublicProfilesSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UserRecommendationsSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRecommendationsRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRecommendationsRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationshipDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationshipDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/UsersSingleDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/Utils.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideoLinkMeta.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosAttributes.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosMultiDataDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosMultiDataDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationships.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationshipsDocument.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosRelationshipsDocumentIncludedInner.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosResource.kt | ||
src/main/kotlin/com/tidal/sdk/tidalapi/generated/models/VideosSingleDataDocument.kt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.9.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"inputs": [ | ||
{ | ||
"inputURL": "https://developer.tidal.com/apiref/api-specifications/api-public-user-jsonapi/tidal-user-v2-openapi-3.0.json" | ||
}, | ||
{ | ||
"inputURL": "https://developer.tidal.com/apiref/api-specifications/api-public-catalogue-jsonapi/tidal-catalog-v2-openapi-3.0.json" | ||
}, | ||
{ | ||
"inputURL": "https://developer.tidal.com/apiref/api-specifications/api-public-search-jsonapi/tidal-search-v2-openapi-3.0.json" | ||
}, | ||
{ | ||
"inputURL": "https://developer.tidal.com/apiref/api-specifications/api-public-user-content/tidal-user-content-openapi-3.0.json" | ||
} | ||
|
||
], | ||
"output": "./tidal-api-joined.json", | ||
"openapi_generator_path": "tbd" | ||
|
||
|
||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would point to where the executable would be found. As I still work on providing it, it is tbd for now (which means, if you run the python script, it will download and merge the API schemas, but won't (re-) generate the code).