Files
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
9.1 KiB
JSON

{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"text":"init","kind":"keyword"},{"kind":"text","text":"("},{"text":"headers","kind":"externalParam"},{"kind":"text","text":": "},{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","preciseIdentifier":"s:14DiscogsService10OperationsO","kind":"typeIdentifier","text":"Operations"},{"kind":"text","text":"."},{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO","kind":"typeIdentifier","text":"PostChangeRatingOfRelease"},{"text":".","kind":"text"},{"text":"Output","kind":"typeIdentifier","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO"},{"kind":"text","text":"."},{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV","kind":"typeIdentifier","text":"NoContent"},{"kind":"text","text":"."},{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct\/Headers-swift.struct","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV7HeadersV","kind":"typeIdentifier","text":"Headers"},{"kind":"text","text":")"}],"platforms":["macOS"],"languages":["swift"]}]},{"parameters":[{"content":[{"inlineContent":[{"text":"Received HTTP response headers","type":"text"}],"type":"paragraph"}],"name":"headers"}],"kind":"parameters"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct\/init(headers:)"},"abstract":[{"text":"Creates a new ","type":"text"},{"code":"NoContent","type":"codeVoice"},{"text":".","type":"text"}],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct"]]},"sections":[],"schemaVersion":{"minor":3,"patch":0,"major":0},"metadata":{"roleHeading":"Initializer","modules":[{"name":"DiscogsService"}],"title":"init(headers:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"headers","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO","kind":"typeIdentifier","text":"Operations"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO","kind":"typeIdentifier","text":"PostChangeRatingOfRelease"},{"text":".","kind":"text"},{"text":"Output","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO"},{"kind":"text","text":"."},{"text":"NoContent","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV"},{"text":".","kind":"text"},{"text":"Headers","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV7HeadersV"},{"text":")","kind":"text"}],"externalID":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV7headersA2I7HeadersV_tcfc","role":"symbol","symbolKind":"init"},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/discogsservice\/operations\/postchangeratingofrelease\/output\/nocontent-swift.struct\/init(headers:)"]}],"references":{"doc://DiscogsService/documentation/DiscogsService/Operations/PostChangeRatingOfRelease/Output/NoContent-swift.struct/Headers-swift.struct":{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct\/Headers-swift.struct","abstract":[],"kind":"symbol","title":"Operations.PostChangeRatingOfRelease.Output.NoContent.Headers","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Headers","kind":"identifier"}],"type":"topic","role":"symbol","url":"\/documentation\/discogsservice\/operations\/postchangeratingofrelease\/output\/nocontent-swift.struct\/headers-swift.struct","navigatorTitle":[{"text":"Headers","kind":"identifier"}]},"doc://DiscogsService/documentation/DiscogsService/Operations/PostChangeRatingOfRelease/Output/NoContent-swift.struct/init(headers:)":{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct\/init(headers:)","abstract":[{"type":"text","text":"Creates a new "},{"type":"codeVoice","code":"NoContent"},{"type":"text","text":"."}],"kind":"symbol","title":"init(headers:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"headers","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Operations","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO"},{"text":".","kind":"text"},{"text":"PostChangeRatingOfRelease","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO"},{"text":".","kind":"text"},{"text":"Output","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO"},{"text":".","kind":"text"},{"text":"NoContent","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV"},{"text":".","kind":"text"},{"text":"Headers","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10OperationsO25PostChangeRatingOfReleaseO6OutputO9NoContentV7HeadersV"},{"text":")","kind":"text"}],"type":"topic","role":"symbol","url":"\/documentation\/discogsservice\/operations\/postchangeratingofrelease\/output\/nocontent-swift.struct\/init(headers:)"},"doc://DiscogsService/documentation/DiscogsService/Operations/PostChangeRatingOfRelease/Output/NoContent-swift.struct":{"title":"Operations.PostChangeRatingOfRelease.Output.NoContent","navigatorTitle":[{"text":"NoContent","kind":"identifier"}],"type":"topic","kind":"symbol","role":"symbol","abstract":[],"fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"NoContent","kind":"identifier"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output\/NoContent-swift.struct","url":"\/documentation\/discogsservice\/operations\/postchangeratingofrelease\/output\/nocontent-swift.struct"},"doc://DiscogsService/documentation/DiscogsService/Operations/PostChangeRatingOfRelease/Output":{"role":"symbol","navigatorTitle":[{"kind":"identifier","text":"Output"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"Output"}],"abstract":[],"url":"\/documentation\/discogsservice\/operations\/postchangeratingofrelease\/output","title":"Operations.PostChangeRatingOfRelease.Output","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease\/Output","type":"topic","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/Operations/PostChangeRatingOfRelease":{"role":"symbol","navigatorTitle":[{"kind":"identifier","text":"PostChangeRatingOfRelease"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"PostChangeRatingOfRelease"}],"abstract":[{"text":"Update a rating for a specified release instance in a specified collection folder of a user.","type":"text"}],"url":"\/documentation\/discogsservice\/operations\/postchangeratingofrelease","title":"Operations.PostChangeRatingOfRelease","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/PostChangeRatingOfRelease","type":"topic","kind":"symbol"},"doc://DiscogsService/documentation/DiscogsService/Operations":{"abstract":[{"type":"text","text":"API operations, with input and output types, generated from "},{"type":"codeVoice","code":"#\/paths"},{"text":" in the OpenAPI document.","type":"text"}],"kind":"symbol","role":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","url":"\/documentation\/discogsservice\/operations","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Operations","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"Operations"}],"type":"topic","title":"Operations"},"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","type":"topic","url":"\/documentation\/discogsservice","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService","abstract":[],"kind":"symbol","role":"collection"}}}