a0672cc4af
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>
1 line
7.2 KiB
JSON
1 line
7.2 KiB
JSON
{"hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService"]]},"sections":[],"metadata":{"externalID":"s:14DiscogsService19UserAgentMiddlewareV","role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"UserAgentMiddleware"}],"symbolKind":"struct","roleHeading":"Structure","navigatorTitle":[{"kind":"identifier","text":"UserAgentMiddleware"}],"title":"UserAgentMiddleware","modules":[{"name":"DiscogsService"}]},"abstract":[{"type":"text","text":"A middleware that attaches the user agent header into the requests to the service."}],"schemaVersion":{"patch":0,"major":0,"minor":3},"seeAlsoSections":[{"anchor":"User-Agent","title":"User Agent","generated":true,"identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Product"]}],"kind":"symbol","identifier":{"url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware","interfaceLanguage":"swift"},"primaryContentSections":[{"declarations":[{"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"UserAgentMiddleware"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"content":[{"type":"heading","text":"Overview","anchor":"overview","level":2},{"inlineContent":[{"type":"text","text":"Please refer to the "},{"type":"reference","identifier":"https:\/\/www.discogs.com\/developers\/#page:home,header:home-general-information","isActive":true},{"type":"text","text":" for further information."}],"type":"paragraph"}],"kind":"content"}],"topicSections":[{"anchor":"Initializers","title":"Initializers","generated":true,"identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/init(product:)"]},{"anchor":"Default-Implementations","title":"Default Implementations","generated":true,"identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/ClientMiddleware-Implementations"]}],"variants":[{"paths":["\/documentation\/discogsservice\/useragentmiddleware"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"type":"conformsTo","title":"Conforms To","kind":"relationships","identifiers":["doc:\/\/DiscogsService\/14OpenAPIRuntime16ClientMiddlewareP","doc:\/\/DiscogsService\/s8CopyableP","doc:\/\/DiscogsService\/s8SendableP","doc:\/\/DiscogsService\/s16SendableMetatypeP"]}],"references":{"doc://DiscogsService/documentation/DiscogsService/UserAgentMiddleware/init(product:)":{"role":"symbol","type":"topic","abstract":[{"text":"Initializes this middleware.","type":"text"}],"kind":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/init(product:)","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"product","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:14DiscogsService7ProductV","text":"Product","kind":"typeIdentifier"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"url":"\/documentation\/discogsservice\/useragentmiddleware\/init(product:)","title":"init(product:)"},"doc://DiscogsService/documentation/DiscogsService/UserAgentMiddleware/ClientMiddleware-Implementations":{"role":"collectionGroup","abstract":[],"kind":"article","type":"topic","title":"ClientMiddleware Implementations","url":"\/documentation\/discogsservice\/useragentmiddleware\/clientmiddleware-implementations","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware\/ClientMiddleware-Implementations"},"doc://DiscogsService/documentation/DiscogsService/Product":{"abstract":[{"type":"text","text":"A type that represents a product that uses the "},{"type":"reference","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Client","isActive":true},{"type":"text","text":" client."}],"fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Product","kind":"identifier"}],"role":"symbol","url":"\/documentation\/discogsservice\/product","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Product","type":"topic","navigatorTitle":[{"text":"Product","kind":"identifier"}],"kind":"symbol","title":"Product"},"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService","url":"\/documentation\/discogsservice","abstract":[],"role":"collection","kind":"symbol","type":"topic"},"doc://DiscogsService/s8SendableP":{"title":"Swift.Sendable","identifier":"doc:\/\/DiscogsService\/s8SendableP","type":"unresolvable"},"doc://DiscogsService/documentation/DiscogsService/UserAgentMiddleware":{"abstract":[{"type":"text","text":"A middleware that attaches the user agent header into the requests to the service."}],"fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"UserAgentMiddleware","kind":"identifier"}],"role":"symbol","url":"\/documentation\/discogsservice\/useragentmiddleware","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/UserAgentMiddleware","type":"topic","navigatorTitle":[{"text":"UserAgentMiddleware","kind":"identifier"}],"kind":"symbol","title":"UserAgentMiddleware"},"doc://DiscogsService/s16SendableMetatypeP":{"title":"Swift.SendableMetatype","identifier":"doc:\/\/DiscogsService\/s16SendableMetatypeP","type":"unresolvable"},"doc://DiscogsService/documentation/DiscogsService/Client":{"kind":"symbol","fragments":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Client","kind":"identifier"}],"abstract":[{"text":"The Discogs API v2.0 is a RESTful interface to Discogs data. You can access JSON-formatted information about Database objects such as ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Artists"}]},{"text":", ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Releases"}]},{"text":", and ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Labels"}]},{"text":". Your application can also manage ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"User Collections"}]},{"text":" and ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Wantlists"}]},{"text":", create ","type":"text"},{"type":"emphasis","inlineContent":[{"type":"text","text":"Marketplace"}]},{"text":" listings, and more.","type":"text"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Client","title":"Client","url":"\/documentation\/discogsservice\/client","role":"symbol","navigatorTitle":[{"text":"Client","kind":"identifier"}],"type":"topic"},"doc://DiscogsService/14OpenAPIRuntime16ClientMiddlewareP":{"type":"unresolvable","identifier":"doc:\/\/DiscogsService\/14OpenAPIRuntime16ClientMiddlewareP","title":"OpenAPIRuntime.ClientMiddleware"},"https://www.discogs.com/developers/#page:home,header:home-general-information":{"titleInlineContent":[{"type":"text","text":"Discogs documentation"}],"url":"https:\/\/www.discogs.com\/developers\/#page:home,header:home-general-information","type":"link","identifier":"https:\/\/www.discogs.com\/developers\/#page:home,header:home-general-information","title":"Discogs documentation"},"doc://DiscogsService/s8CopyableP":{"type":"unresolvable","identifier":"doc:\/\/DiscogsService\/s8CopyableP","title":"Swift.Copyable"}}} |