Files
discogs-service/docs/data/documentation/discogsservice/components/schemas/releaseinfolder/init(id:folderid:instanceid:resourceurl:dateadded:rating:basicinformation:notes:).json
T
javier f3d5c0e6ac Implemented the User Wantlist endpoints (#13)
This PR contains the work done to implement the *User Wantlist* endpoints of the *Discogs API* online service in the `Open API` specification document:

* GET `/users/{username}/wants`
* POST `/users/{username}/wants/{release_id}`
* PUT `/users/{username}/wants/{release_id}`
* DELETE `/users/{username}/wants/{release_id}`

Reviewed-on: #13
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2025-10-16 16:24:46 +00:00

1 line
14 KiB
JSON

{"primaryContentSections":[{"declarations":[{"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"id"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"folderId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"? = nil, "},{"kind":"externalParam","text":"instanceId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"? = nil, "},{"kind":"externalParam","text":"resourceUrl"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":"? = nil, "},{"kind":"externalParam","text":"dateAdded"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"rating"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"? = nil, "},{"kind":"externalParam","text":"basicInformation"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas","text":"Schemas","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/Release","text":"Release","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO7ReleaseV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"notes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas","text":"Schemas","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder","text":"ReleaseInFolder","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV"},{"kind":"text","text":"."},{"kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder\/NotesPayload","text":"NotesPayload","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV12NotesPayloada"},{"kind":"text","text":"? = nil)"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"An identifier of an appearance of a release in a collection folder.","type":"text"}],"type":"paragraph"}],"name":"id"},{"content":[{"inlineContent":[{"text":"An identifier of a collection folder that contains a specified release, if any.","type":"text"}],"type":"paragraph"}],"name":"folderId"},{"content":[{"inlineContent":[{"text":"An identifier of a release instance, if any.","type":"text"}],"type":"paragraph"}],"name":"instanceId"},{"content":[{"inlineContent":[{"text":"A URI resource to a release, if any.","type":"text"}],"type":"paragraph"}],"name":"resourceUrl"},{"content":[{"inlineContent":[{"text":"A date and time in which a release was added into the collection folder of a user.","type":"text"}],"type":"paragraph"}],"name":"dateAdded"},{"content":[{"inlineContent":[{"text":"A rating given to a release by a user that added it into a collection folder.","type":"text"}],"type":"paragraph"}],"name":"rating"},{"content":[{"inlineContent":[{"text":"The available information about a release that was added into a collection folder of a user.","type":"text"}],"type":"paragraph"}],"name":"basicInformation"},{"content":[{"inlineContent":[{"text":"A list of additional notes related to a release in a collection folder of a user.","type":"text"}],"type":"paragraph"}],"name":"notes"}]}],"metadata":{"title":"init(id:folderId:instanceId:resourceUrl:dateAdded:rating:basicInformation:notes:)","modules":[{"name":"DiscogsService"}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"id"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"folderId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"instanceId"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"resourceUrl"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"dateAdded"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Date","preciseIdentifier":"s:10Foundation4DateV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"rating"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"basicInformation"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Schemas","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Release","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO7ReleaseV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"notes"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Schemas","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"ReleaseInFolder","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"NotesPayload","preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV12NotesPayloada"},{"kind":"text","text":"?)"}],"externalID":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV2id8folderId08instanceJ011resourceUrl9dateAdded6rating16basicInformation5notesAGSi_SiSgAPSSSg10Foundation4DateVApE0E0VSayAG012NotesPayloadW0VGSgtcfc","role":"symbol","symbolKind":"init","roleHeading":"Initializer"},"abstract":[{"text":"Creates a new ","type":"text"},{"code":"ReleaseInFolder","type":"codeVoice"},{"text":".","type":"text"}],"schemaVersion":{"minor":3,"major":0,"patch":0},"sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/discogsservice\/components\/schemas\/releaseinfolder\/init(id:folderid:instanceid:resourceurl:dateadded:rating:basicinformation:notes:)"]}],"identifier":{"url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder\/init(id:folderId:instanceId:resourceUrl:dateAdded:rating:basicInformation:notes:)","interfaceLanguage":"swift"},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder"]]},"references":{"doc://DiscogsService/documentation/DiscogsService/Components/Schemas/ReleaseInFolder/init(id:folderId:instanceId:resourceUrl:dateAdded:rating:basicInformation:notes:)":{"type":"topic","abstract":[{"text":"Creates a new ","type":"text"},{"code":"ReleaseInFolder","type":"codeVoice"},{"text":".","type":"text"}],"fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"id","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"folderId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"instanceId","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"resourceUrl","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"dateAdded","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:10Foundation4DateV","text":"Date","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"rating","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"basicInformation","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO","text":"Schemas","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO7ReleaseV","text":"Release","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"notes","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO","text":"Schemas","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV","text":"ReleaseInFolder","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO7SchemasO15ReleaseInFolderV12NotesPayloada","text":"NotesPayload","kind":"typeIdentifier"},{"text":"?)","kind":"text"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder\/init(id:folderId:instanceId:resourceUrl:dateAdded:rating:basicInformation:notes:)","kind":"symbol","title":"init(id:folderId:instanceId:resourceUrl:dateAdded:rating:basicInformation:notes:)","role":"symbol","url":"\/documentation\/discogsservice\/components\/schemas\/releaseinfolder\/init(id:folderid:instanceid:resourceurl:dateadded:rating:basicinformation:notes:)"},"doc://DiscogsService/documentation/DiscogsService/Components":{"role":"symbol","navigatorTitle":[{"kind":"identifier","text":"Components"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"Components","kind":"identifier"}],"abstract":[{"text":"Types generated from the components section of the OpenAPI document.","type":"text"}],"url":"\/documentation\/discogsservice\/components","title":"Components","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components","type":"topic","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/Components/Schemas/ReleaseInFolder":{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder","abstract":[{"type":"text","text":"A type that represents an appearance of a release in a collection folder of a user."}],"kind":"symbol","title":"Components.Schemas.ReleaseInFolder","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"ReleaseInFolder","kind":"identifier"}],"type":"topic","role":"symbol","url":"\/documentation\/discogsservice\/components\/schemas\/releaseinfolder","navigatorTitle":[{"text":"ReleaseInFolder","kind":"identifier"}]},"doc://DiscogsService/documentation/DiscogsService/Components/Schemas/Release":{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/Release","abstract":[{"type":"text","text":"A type that eepresents a particular physical or digital object released by one or more artists."}],"kind":"symbol","title":"Components.Schemas.Release","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Release"}],"type":"topic","role":"symbol","url":"\/documentation\/discogsservice\/components\/schemas\/release","navigatorTitle":[{"kind":"identifier","text":"Release"}]},"doc://DiscogsService/documentation/DiscogsService/Components/Schemas/ReleaseInFolder/NotesPayload":{"navigatorTitle":[{"text":"NotesPayload","kind":"identifier"}],"url":"\/documentation\/discogsservice\/components\/schemas\/releaseinfolder\/notespayload","title":"Components.Schemas.ReleaseInFolder.NotesPayload","abstract":[{"text":"A list of additional notes related to a release in a collection folder of a user.","type":"text"}],"type":"topic","fragments":[{"text":"typealias","kind":"keyword"},{"text":" ","kind":"text"},{"text":"NotesPayload","kind":"identifier"}],"role":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas\/ReleaseInFolder\/NotesPayload","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/Components/Schemas":{"abstract":[{"text":"Types generated from the ","type":"text"},{"type":"codeVoice","code":"#\/components\/schemas"},{"text":" section of the OpenAPI document.","type":"text"}],"type":"topic","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Components\/Schemas","url":"\/documentation\/discogsservice\/components\/schemas","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Schemas","kind":"identifier"}],"kind":"symbol","title":"Components.Schemas","role":"symbol","navigatorTitle":[{"text":"Schemas","kind":"identifier"}]},"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","type":"topic","url":"\/documentation\/discogsservice","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService","abstract":[],"kind":"symbol","role":"collection"}}}