Files
discogs-service/docs/data/documentation/discogsservice/operations/getinventory/input/query-swift.struct.json
T
javier a0672cc4af Implemented the Marketplace endpoints (#15)
This PR contains the work done to implement the *Marketplace* endpoints for the **Discogs API** backend service, which include the following endpoints:
* GET `/users/{username}/inventory` endpoint
* GET `/marketplace/listings/{listing_id}` endpoint
* DELETE `/marketplace/listings/{listing_id}` endpoint
* POST `/marketplace/listings/{listing_id}` endpoint
* POST `/marketplace/listings` endpoint
* GET `/marketplace/orders` endpoint
* GET `/marketplace/orders/{order_id}` endpoint
* GET `/marketplace/orders/{order_id}/messages` endpoint
* POST `/marketplace/orders/{order_id}/messages` endpoint
* GET `/marketplace/fee/{price}` endpoint
* GET `/marketplace/fee/{price}/{currency}` endpoint
* GET `/marketplace/price_suggestions/{release_id}` endpoint
* GET `/marketplace/stats/{release_id}` endpoint

Reviewed-on: #15
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2025-11-10 00:34:18 +00:00

1 line
17 KiB
JSON

{"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Query","kind":"identifier"}],"platforms":["macOS"]}],"kind":"declarations"},{"content":[{"type":"heading","level":2,"text":"Overview","anchor":"overview"},{"name":"Remark","type":"aside","content":[{"inlineContent":[{"type":"text","text":"Generated from "},{"code":"#\/paths\/users\/{username}\/inventory\/GET\/query","type":"codeVoice"},{"type":"text","text":"."}],"type":"paragraph"}],"style":"note"}],"kind":"content"}],"relationshipsSections":[{"type":"conformsTo","title":"Conforms To","kind":"relationships","identifiers":["doc:\/\/DiscogsService\/SQ","doc:\/\/DiscogsService\/SH","doc:\/\/DiscogsService\/s8SendableP","doc:\/\/DiscogsService\/s16SendableMetatypeP"]}],"kind":"symbol","topicSections":[{"generated":true,"anchor":"Initializers","identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/init(status:sort:sortOrder:page:perPage:)"],"title":"Initializers"},{"anchor":"Instance-Properties","generated":true,"title":"Instance Properties","identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/page","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/perPage","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/sort","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/sortOrder-swift.property","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/status"]},{"generated":true,"anchor":"Enumerations","identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/InventoryStatus","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/SortInventory","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/SortOrder-swift.enum"],"title":"Enumerations"},{"anchor":"Default-Implementations","generated":true,"title":"Default Implementations","identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/Equatable-Implementations"]}],"metadata":{"externalID":"s:14DiscogsService10OperationsO12GetInventoryO5InputV5QueryV","role":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"text":"Query","kind":"identifier"}],"symbolKind":"struct","roleHeading":"Structure","navigatorTitle":[{"kind":"identifier","text":"Query"}],"title":"Operations.GetInventory.Input.Query","modules":[{"name":"DiscogsService"}]},"hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input"]]},"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct"]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct"},"references":{"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/Equatable-Implementations":{"role":"collectionGroup","abstract":[],"kind":"article","type":"topic","title":"Equatable Implementations","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/equatable-implementations","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/Equatable-Implementations"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory":{"abstract":[{"text":"Get the listings in an inventory of a seller.","type":"text"}],"kind":"symbol","type":"topic","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory","title":"Operations.GetInventory","url":"\/documentation\/discogsservice\/operations\/getinventory","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"GetInventory"}],"role":"symbol","navigatorTitle":[{"kind":"identifier","text":"GetInventory"}]},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/page":{"kind":"symbol","fragments":[{"kind":"keyword","text":"var"},{"text":" ","kind":"text"},{"text":"page","kind":"identifier"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"text":".","kind":"text"},{"text":"Parameters","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","kind":"typeIdentifier"},{"kind":"text","text":"."},{"preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO4Pagea","text":"Page","kind":"typeIdentifier"},{"kind":"text","text":"?"}],"abstract":[{"type":"text","text":"A number of page of results to return."}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/page","title":"page","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/page","role":"symbol","type":"topic"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input":{"abstract":[],"kind":"symbol","type":"topic","title":"Operations.GetInventory.Input","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input","url":"\/documentation\/discogsservice\/operations\/getinventory\/input","fragments":[{"text":"struct","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"Input"}],"role":"symbol","navigatorTitle":[{"text":"Input","kind":"identifier"}]},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/status":{"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"status","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Components","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"text":".","kind":"text"},{"text":"Parameters","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO"},{"text":".","kind":"text"},{"text":"InventoryStatus","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO15InventoryStatusO"},{"text":"?","kind":"text"}],"abstract":[{"type":"text","text":"A status of a inventory."}],"kind":"symbol","type":"topic","title":"status","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/status","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/status"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/SortInventory":{"url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/sortinventory","title":"Operations.GetInventory.Input.Query.SortInventory","role":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"SortInventory"}],"navigatorTitle":[{"kind":"identifier","text":"SortInventory"}],"kind":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/SortInventory","abstract":[],"type":"topic"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/perPage":{"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"perPage","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Components","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"text":".","kind":"text"},{"text":"Parameters","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO"},{"text":".","kind":"text"},{"text":"PerPage","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO7PerPagea"},{"text":"?","kind":"text"}],"abstract":[{"type":"text","text":"A number of items to return per page."}],"kind":"symbol","type":"topic","title":"perPage","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/perpage","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/perPage"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct":{"url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct","title":"Operations.GetInventory.Input.Query","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Query"}],"navigatorTitle":[{"kind":"identifier","text":"Query"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct","kind":"symbol","abstract":[],"type":"topic"},"doc://DiscogsService/SH":{"type":"unresolvable","identifier":"doc:\/\/DiscogsService\/SH","title":"Swift.Hashable"},"doc://DiscogsService/SQ":{"type":"unresolvable","identifier":"doc:\/\/DiscogsService\/SQ","title":"Swift.Equatable"},"doc://DiscogsService/s16SendableMetatypeP":{"type":"unresolvable","identifier":"doc:\/\/DiscogsService\/s16SendableMetatypeP","title":"Swift.SendableMetatype"},"doc://DiscogsService/documentation/DiscogsService/Operations":{"type":"topic","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"text":"Operations","kind":"identifier"}],"navigatorTitle":[{"kind":"identifier","text":"Operations"}],"title":"Operations","url":"\/documentation\/discogsservice\/operations","identifier":"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"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/InventoryStatus":{"url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/inventorystatus","title":"Operations.GetInventory.Input.Query.InventoryStatus","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"InventoryStatus"}],"navigatorTitle":[{"kind":"identifier","text":"InventoryStatus"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/InventoryStatus","kind":"symbol","abstract":[],"type":"topic"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/sortOrder-swift.property":{"role":"symbol","fragments":[{"text":"var","kind":"keyword"},{"kind":"text","text":" "},{"text":"sortOrder","kind":"identifier"},{"kind":"text","text":": "},{"preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters","kind":"typeIdentifier"},{"text":".","kind":"text"},{"preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO9SortOrderO","text":"SortOrder","kind":"typeIdentifier"},{"text":"?","kind":"text"}],"abstract":[{"type":"text","text":"The order to sort the results."}],"kind":"symbol","type":"topic","title":"sortOrder","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/sortorder-swift.property","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/sortOrder-swift.property"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/init(status:sort:sortOrder:page:perPage:)":{"kind":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"(","kind":"text"},{"text":"status","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Components","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"text":".","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"text":".","kind":"text"},{"text":"InventoryStatus","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO15InventoryStatusO"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"sort"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO13SortInventoryO","text":"SortInventory"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"sortOrder"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO9SortOrderO","text":"SortOrder"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"page"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO4Pagea","text":"Page"},{"kind":"text","text":"?, "},{"kind":"externalParam","text":"perPage"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"kind":"text","text":"."},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO7PerPagea","text":"PerPage"},{"kind":"text","text":"?)"}],"abstract":[{"type":"text","text":"Creates a new "},{"type":"codeVoice","code":"Query"},{"type":"text","text":"."}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/init(status:sort:sortOrder:page:perPage:)","title":"init(status:sort:sortOrder:page:perPage:)","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/init(status:sort:sortorder:page:perpage:)","role":"symbol","type":"topic"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/sort":{"kind":"symbol","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sort"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO","text":"Components"},{"text":".","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO","text":"Parameters"},{"text":".","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO10ParametersO13SortInventoryO","text":"SortInventory"},{"text":"?","kind":"text"}],"abstract":[{"type":"text","text":"A filter by an inventory field."}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/sort","title":"sort","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/sort","role":"symbol","type":"topic"},"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService","url":"\/documentation\/discogsservice","abstract":[],"role":"collection","kind":"symbol","type":"topic"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetInventory/Input/Query-swift.struct/SortOrder-swift.enum":{"kind":"symbol","fragments":[{"text":"enum","kind":"keyword"},{"text":" ","kind":"text"},{"text":"SortOrder","kind":"identifier"}],"abstract":[],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetInventory\/Input\/Query-swift.struct\/SortOrder-swift.enum","title":"Operations.GetInventory.Input.Query.SortOrder","url":"\/documentation\/discogsservice\/operations\/getinventory\/input\/query-swift.struct\/sortorder-swift.enum","role":"symbol","navigatorTitle":[{"text":"SortOrder","kind":"identifier"}],"type":"topic"},"doc://DiscogsService/s8SendableP":{"type":"unresolvable","title":"Swift.Sendable","identifier":"doc:\/\/DiscogsService\/s8SendableP"}}}