Files
discogs-service/docs/data/documentation/discogsservice/operations/getrequesttoken/output/ok-swift.struct/headers-swift.struct.json
T
javier 9a30b69561 Implemented the Authentication endpoints (#9)
This PR contains the work done to implement the *Authentication* endpoints of the Discogs API:
* GET `/oauth/request_token`
* POST `/oauth/access_token`
* GET `/oauth/identity`

Reviewed-on: #9
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2025-10-13 17:55:48 +00:00

1 line
13 KiB
JSON

{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"struct","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Headers","kind":"identifier"}],"languages":["swift"]}]},{"kind":"content","content":[{"type":"heading","anchor":"overview","text":"Overview","level":2},{"type":"aside","name":"Remark","style":"note","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"Generated from "},{"type":"codeVoice","code":"#\/paths\/oauth\/request_token\/GET\/responses\/200\/headers"},{"text":".","type":"text"}]}]}]}],"metadata":{"modules":[{"name":"DiscogsService"}],"navigatorTitle":[{"kind":"identifier","text":"Headers"}],"title":"Operations.GetRequestToken.Output.Ok.Headers","role":"symbol","symbolKind":"struct","roleHeading":"Structure","externalID":"s:14DiscogsService10OperationsO15GetRequestTokenO6OutputO2OkV7HeadersV","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Headers"}]},"variants":[{"paths":["\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","topicSections":[{"anchor":"Initializers","title":"Initializers","identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/init(oauthToken:oauthTokenSecret:oauthCallbackConfirmed:)"],"generated":true},{"generated":true,"identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthCallbackConfirmed","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthToken","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthTokenSecret"],"title":"Instance Properties","anchor":"Instance-Properties"},{"identifiers":["doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/Equatable-Implementations"],"anchor":"Default-Implementations","generated":true,"title":"Default Implementations"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"relationshipsSections":[{"type":"conformsTo","kind":"relationships","identifiers":["doc:\/\/DiscogsService\/SQ","doc:\/\/DiscogsService\/SH","doc:\/\/DiscogsService\/s8SendableP","doc:\/\/DiscogsService\/s16SendableMetatypeP"],"title":"Conforms To"}],"identifier":{"url":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/DiscogsService\/documentation\/DiscogsService","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output","doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct"]]},"sections":[],"references":{"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct/oauthToken":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct\/oauthtoken","role":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthToken","abstract":[{"type":"text","text":"An OAuth request token."}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"oauthToken"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Headers","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"OAuthToken","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO10OAuthTokena"},{"kind":"text","text":"?"}],"kind":"symbol","type":"topic","title":"oauthToken"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct","type":"topic","kind":"symbol","title":"Operations.GetRequestToken.Output.Ok","abstract":[],"role":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct","navigatorTitle":[{"text":"Ok","kind":"identifier"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"text":"Ok","kind":"identifier"}]},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct":{"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct","title":"Operations.GetRequestToken.Output.Ok.Headers","url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct","type":"topic","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Headers"}],"abstract":[],"role":"symbol","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Headers"}]},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct/Equatable-Implementations":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct\/equatable-implementations","type":"topic","kind":"article","title":"Equatable Implementations","abstract":[],"role":"collectionGroup","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/Equatable-Implementations"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct/init(oauthToken:oauthTokenSecret:oauthCallbackConfirmed:)":{"abstract":[{"text":"Creates a new ","type":"text"},{"type":"codeVoice","code":"Headers"},{"text":".","type":"text"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/init(oauthToken:oauthTokenSecret:oauthCallbackConfirmed:)","url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct\/init(oauthtoken:oauthtokensecret:oauthcallbackconfirmed:)","title":"init(oauthToken:oauthTokenSecret:oauthCallbackConfirmed:)","role":"symbol","type":"topic","kind":"symbol","fragments":[{"text":"init","kind":"identifier"},{"text":"(","kind":"text"},{"text":"oauthToken","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO","kind":"typeIdentifier"},{"text":".","kind":"text"},{"text":"Headers","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO","kind":"typeIdentifier"},{"text":".","kind":"text"},{"text":"OAuthToken","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO10OAuthTokena","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"oauthTokenSecret","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO","kind":"typeIdentifier"},{"text":".","kind":"text"},{"text":"Headers","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO","kind":"typeIdentifier"},{"text":".","kind":"text"},{"text":"OAuthSecret","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO11OAuthSecreta","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"oauthCallbackConfirmed","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO","kind":"typeIdentifier"},{"text":".","kind":"text"},{"text":"Headers","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO"},{"text":".","kind":"text"},{"text":"OAuthCallback","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO13OAuthCallbacka","kind":"typeIdentifier"},{"text":"?)","kind":"text"}]},"doc://DiscogsService/documentation/DiscogsService":{"title":"DiscogsService","abstract":[],"role":"collection","type":"topic","kind":"symbol","url":"\/documentation\/discogsservice","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct/oauthTokenSecret":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct\/oauthtokensecret","role":"symbol","abstract":[{"text":"An OAuth request token secret.","type":"text"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthTokenSecret","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"oauthTokenSecret","kind":"identifier"},{"text":": ","kind":"text"},{"text":"Components","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"text":".","kind":"text"},{"text":"Headers","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO"},{"text":".","kind":"text"},{"text":"OAuthSecret","kind":"typeIdentifier","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO11OAuthSecreta"},{"text":"?","kind":"text"}],"kind":"symbol","type":"topic","title":"oauthTokenSecret"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output/Ok-swift.struct/Headers-swift.struct/oauthCallbackConfirmed":{"type":"topic","url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output\/ok-swift.struct\/headers-swift.struct\/oauthcallbackconfirmed","kind":"symbol","title":"oauthCallbackConfirmed","abstract":[{"text":"An OAuth callback confirmed.","type":"text"}],"role":"symbol","identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output\/Ok-swift.struct\/Headers-swift.struct\/oauthCallbackConfirmed","fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"oauthCallbackConfirmed"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"Components","preciseIdentifier":"s:14DiscogsService10ComponentsO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Headers","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"OAuthCallback","preciseIdentifier":"s:14DiscogsService10ComponentsO7HeadersO13OAuthCallbacka"},{"kind":"text","text":"?"}]},"doc://DiscogsService/s16SendableMetatypeP":{"title":"Swift.SendableMetatype","type":"unresolvable","identifier":"doc:\/\/DiscogsService\/s16SendableMetatypeP"},"doc://DiscogsService/documentation/DiscogsService/Operations":{"url":"\/documentation\/discogsservice\/operations","kind":"symbol","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"kind":"identifier","text":"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"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations","navigatorTitle":[{"kind":"identifier","text":"Operations"}],"title":"Operations"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken","kind":"symbol","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"GetRequestToken"}],"abstract":[{"text":"Get details about a OAuth request token.","type":"text"}],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken","navigatorTitle":[{"kind":"identifier","text":"GetRequestToken"}],"title":"Operations.GetRequestToken"},"doc://DiscogsService/SH":{"title":"Swift.Hashable","type":"unresolvable","identifier":"doc:\/\/DiscogsService\/SH"},"doc://DiscogsService/SQ":{"title":"Swift.Equatable","type":"unresolvable","identifier":"doc:\/\/DiscogsService\/SQ"},"doc://DiscogsService/documentation/DiscogsService/Operations/GetRequestToken/Output":{"url":"\/documentation\/discogsservice\/operations\/getrequesttoken\/output","kind":"symbol","role":"symbol","type":"topic","fragments":[{"kind":"keyword","text":"enum"},{"text":" ","kind":"text"},{"text":"Output","kind":"identifier"}],"abstract":[],"identifier":"doc:\/\/DiscogsService\/documentation\/DiscogsService\/Operations\/GetRequestToken\/Output","navigatorTitle":[{"text":"Output","kind":"identifier"}],"title":"Operations.GetRequestToken.Output"},"doc://DiscogsService/s8SendableP":{"title":"Swift.Sendable","type":"unresolvable","identifier":"doc:\/\/DiscogsService\/s8SendableP"}}}