feat: demo-api-scalar-galaxy-python@0.1.1#1
Open
marclave wants to merge 1 commit into
Open
Conversation
c7b501a to
c2f59a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scalar Galaxy
Generated Python SDK for Scalar Galaxy API.
The Scalar Galaxy is an example OpenAPI document to test OpenAPI tools and libraries. It's a fictional universe with fictional planets and fictional data. Get all the data for all planets.
Resources
Markdown Support
All descriptions can contain
tons of textMarkdown. If GitHub supports the syntax, chances are we're supporting it, too. You can even create internal links to reference endpoints.Examples
Blockquotes
Tables
Accordion
Images
Yes, there's support for images, too!
Alerts
Contents
Installation
Usage
The examples in the following sections assume a
clientconfigured as shown above.See the API reference for every available operation.
Async
Every client has an
Asynccounterpart (AsyncScalarGalaxy) exposing the same resource tree withawait.Authentication
Pass credentials to the generated client constructor. Environment variables are read automatically when supported by the target runtime.
bearer_authstring | providerbasic_auth_usernamestring | providerapi_key_headerstring | providerapi_key_querystring | providerapi_key_cookiestring | providero_auth2string | provideropen_id_connectstring | providerDeclared schemes:
bearerAuthbearer tokenbasicAuthbasic authenticationapiKeyHeaderAPI key in headerX-API-KeyapiKeyQueryAPI key in queryapi_keyapiKeyCookieAPI key in cookieapi_keyoAuth2OAuth2/OpenID ConnectopenIdConnectOAuth2/OpenID ConnectErrors
Non-success responses throw generated API errors. Error objects expose status, headers, response body, and request metadata where the target runtime supports it.
Documented error statuses:
400,401,403,404,409,422.Client Options
Configure the generated client by setting any of these options when you create it.
bearer_authstr | Noneos.environ.get("BEARER_AUTH")basic_auth_usernamestr | Noneos.environ.get("BASIC_AUTH_USERNAME")api_key_headerstr | Noneos.environ.get("API_KEY_HEADER")api_key_querystr | Noneos.environ.get("API_KEY_QUERY")api_key_cookiestr | Noneos.environ.get("API_KEY_COOKIE")o_auth2str | Noneos.environ.get("SCALAR_O_AUTH2")open_id_connectstr | Noneos.environ.get("SCALAR_OPEN_ID_CONNECT")base_urlstr | httpx.URL | Nonetimeoutfloat | Timeout | None60.0max_retriesint2default_headersMapping[str, str] | Nonedefault_queryMapping[str, object] | NoneRetries and Timeouts
Generated clients support request timeouts and retry temporary failures such as network errors, 408, 409, 429, and 5xx responses. Retry delays honor
Retry-Afterheaders when present. Tune the retry and timeout client options shown above, or override them per request.Helpers
client.with_raw_response.<resource>.<method>(...)to access the rawhttpx.Responseand parse it yourself.client.with_streaming_response.<resource>.<method>(...)to stream a response body without buffering it.Logging
SCALAR_LOGenvironment variable toinfoordebugto enable HTTP logging.loggingmodule under thescalar_galaxy_pylogger.Requirements
Powered by Scalar.
Contributions
This SDK is generated programmatically. Manual edits to generated files will be
overwritten on the next build.
SDK created by Scalar