a83da81414
This PR contains the work done to fix some bug fixes that were encountered while quickly testing the interactions with the service endpoints. Furthermore, there is also a possible fix to build this library for non-apple platforms. Reviewed-on: #8 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
1 line
6.6 KiB
JSON
1 line
6.6 KiB
JSON
{"primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"kind":"keyword","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"serverURL"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:10Foundation3URLV","text":"URL"},{"kind":"text","text":", "},{"kind":"externalParam","text":"configuration"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Configuration","preciseIdentifier":"s:14OpenAPIRuntime13ConfigurationV"},{"kind":"text","text":" = .init(), "},{"kind":"externalParam","text":"transport"},{"kind":"text","text":": any "},{"kind":"typeIdentifier","preciseIdentifier":"s:14OpenAPIRuntime15ClientTransportP","text":"ClientTransport"},{"kind":"text","text":", "},{"kind":"externalParam","text":"middlewares"},{"kind":"text","text":": [any "},{"kind":"typeIdentifier","text":"ClientMiddleware","preciseIdentifier":"s:14OpenAPIRuntime16ClientMiddlewareP"},{"text":"] = [])","kind":"text"}],"platforms":["macOS"]}],"kind":"declarations"},{"parameters":[{"name":"serverURL","content":[{"inlineContent":[{"text":"The server URL that the client connects to. Any server","type":"text"},{"text":" ","type":"text"},{"text":"URLs defined in the OpenAPI document are available as static methods","type":"text"},{"text":" ","type":"text"},{"text":"on the ","type":"text"},{"identifier":"doc:\/\/MarvelService\/documentation\/MarvelService\/Servers","type":"reference","isActive":true},{"text":" type.","type":"text"}],"type":"paragraph"}]},{"name":"configuration","content":[{"inlineContent":[{"text":"A set of configuration values for the client.","type":"text"}],"type":"paragraph"}]},{"name":"transport","content":[{"inlineContent":[{"text":"A transport that performs HTTP operations.","type":"text"}],"type":"paragraph"}]},{"name":"middlewares","content":[{"inlineContent":[{"text":"A list of middlewares to call before the transport.","type":"text"}],"type":"paragraph"}]}],"kind":"parameters"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/MarvelService\/documentation\/MarvelService\/Client\/init(serverURL:configuration:transport:middlewares:)"},"abstract":[{"type":"text","text":"Creates a new client."}],"variants":[{"paths":["\/documentation\/marvelservice\/client\/init(serverurl:configuration:transport:middlewares:)"],"traits":[{"interfaceLanguage":"swift"}]}],"sections":[],"kind":"symbol","hierarchy":{"paths":[["doc:\/\/MarvelService\/documentation\/MarvelService","doc:\/\/MarvelService\/documentation\/MarvelService\/Client"]]},"metadata":{"externalID":"s:13MarvelService6ClientV9serverURL13configuration9transport11middlewaresAC10Foundation0E0V_14OpenAPIRuntime13ConfigurationVAK0C9Transport_pSayAK0C10Middleware_pGtcfc","title":"init(serverURL:configuration:transport:middlewares:)","symbolKind":"init","roleHeading":"Initializer","modules":[{"name":"MarvelService"}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"serverURL"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:10Foundation3URLV","text":"URL"},{"text":", ","kind":"text"},{"text":"configuration","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Configuration","kind":"typeIdentifier","preciseIdentifier":"s:14OpenAPIRuntime13ConfigurationV"},{"text":", ","kind":"text"},{"text":"transport","kind":"externalParam"},{"text":": any ","kind":"text"},{"text":"ClientTransport","kind":"typeIdentifier","preciseIdentifier":"s:14OpenAPIRuntime15ClientTransportP"},{"kind":"text","text":", "},{"kind":"externalParam","text":"middlewares"},{"kind":"text","text":": [any "},{"kind":"typeIdentifier","preciseIdentifier":"s:14OpenAPIRuntime16ClientMiddlewareP","text":"ClientMiddleware"},{"kind":"text","text":"])"}],"role":"symbol"},"schemaVersion":{"patch":0,"minor":3,"major":0},"references":{"doc://MarvelService/documentation/MarvelService/Client/init(serverURL:configuration:transport:middlewares:)":{"url":"\/documentation\/marvelservice\/client\/init(serverurl:configuration:transport:middlewares:)","role":"symbol","identifier":"doc:\/\/MarvelService\/documentation\/MarvelService\/Client\/init(serverURL:configuration:transport:middlewares:)","abstract":[{"type":"text","text":"Creates a new client."}],"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"serverURL"},{"kind":"text","text":": "},{"preciseIdentifier":"s:10Foundation3URLV","kind":"typeIdentifier","text":"URL"},{"kind":"text","text":", "},{"kind":"externalParam","text":"configuration"},{"kind":"text","text":": "},{"preciseIdentifier":"s:14OpenAPIRuntime13ConfigurationV","kind":"typeIdentifier","text":"Configuration"},{"kind":"text","text":", "},{"kind":"externalParam","text":"transport"},{"kind":"text","text":": any "},{"preciseIdentifier":"s:14OpenAPIRuntime15ClientTransportP","kind":"typeIdentifier","text":"ClientTransport"},{"kind":"text","text":", "},{"kind":"externalParam","text":"middlewares"},{"kind":"text","text":": [any "},{"preciseIdentifier":"s:14OpenAPIRuntime16ClientMiddlewareP","kind":"typeIdentifier","text":"ClientMiddleware"},{"kind":"text","text":"])"}],"kind":"symbol","type":"topic","title":"init(serverURL:configuration:transport:middlewares:)"},"doc://MarvelService/documentation/MarvelService/Servers":{"identifier":"doc:\/\/MarvelService\/documentation\/MarvelService\/Servers","kind":"symbol","abstract":[{"type":"text","text":"Server URLs defined in the OpenAPI document."}],"type":"topic","title":"Servers","navigatorTitle":[{"kind":"identifier","text":"Servers"}],"url":"\/documentation\/marvelservice\/servers","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"Servers"}],"role":"symbol"},"doc://MarvelService/documentation/MarvelService/Client":{"identifier":"doc:\/\/MarvelService\/documentation\/MarvelService\/Client","kind":"symbol","abstract":[{"type":"text","text":"The Marvel Comics RESTful API."}],"type":"topic","title":"Client","navigatorTitle":[{"kind":"identifier","text":"Client"}],"url":"\/documentation\/marvelservice\/client","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Client"}],"role":"symbol"},"doc://MarvelService/documentation/MarvelService":{"kind":"symbol","identifier":"doc:\/\/MarvelService\/documentation\/MarvelService","role":"collection","abstract":[{"type":"text","text":"A library that allows the developer to interact with the "},{"type":"strong","inlineContent":[{"type":"text","text":"Marvel Comics API"}]},{"type":"text","text":" backend service."}],"url":"\/documentation\/marvelservice","type":"topic","title":"MarvelService"}}} |