- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for spotify (0.31 sec)
-
docs/en/docs/advanced/custom-response.md
} ``` Of course, you will probably find much better ways to take advantage of this than formatting JSON. 😉 ## Default response class When creating a **FastAPI** class instance or an `APIRouter` you can specify which response class to use by default. The parameter that defines this is `default_response_class`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
```Python hl_lines="16-18 21-22 25-30 34-35 38-39 42-48" {!../../../docs_src/sql_databases_peewee/sql_app/schemas.py!} ``` !!! tip Here we are creating the models with an `id`. We didn't explicitly specify an `id` attribute in the Peewee models, but Peewee adds one automatically. We are also adding the magic `owner_id` attribute to `Item`. ### Create a `PeeweeGetterDict` for the Pydantic *models* / schemas
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (1) -
fastapi/applications.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 172.2K bytes - Viewed (0) -
tests/test_ambiguous_params.py
match=( "Cannot specify `Depends` in `Annotated` and default value" " together for 'foo'" ), ): @app.get("/") async def get2(foo: Annotated[int, Depends(dep)] = Depends(dep)): pass # pragma: nocover with pytest.raises( AssertionError, match=( "Cannot specify a FastAPI annotation in `Annotated` and `Depends` as a"
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Dec 12 00:22:47 GMT 2023 - 2.1K bytes - Viewed (0) -
fastapi/dependencies/utils.py
if isinstance(value, params.Depends): assert depends is None, ( "Cannot specify `Depends` in `Annotated` and default value" f" together for {param_name!r}" ) assert field_info is None, ( "Cannot specify a FastAPI annotation in `Annotated` and `Depends` as a" f" default value together for {param_name!r}" )
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
```Python hl_lines="19-24 28" {!../../../docs_src/additional_responses/tutorial002.py!} ``` !!! note Notice that you have to return the image using a `FileResponse` directly. !!! info Unless you specify a different media type explicitly in your `responses` parameter, FastAPI will assume the response has the same media type as the main response class (default `application/json`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 8.8K bytes - Viewed (0) -
docs/en/docs/tutorial/cors.md
So, for everything to work correctly, it's better to specify explicitly the allowed origins. ## Use `CORSMiddleware` You can configure it in your **FastAPI** application using the `CORSMiddleware`. * Import `CORSMiddleware`. * Create a list of allowed origins (as strings). * Add it as a "middleware" to your **FastAPI** application. You can also specify if your backend allows:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Nov 13 20:28:37 GMT 2022 - 5.1K bytes - Viewed (0) -
.github/actions/notify-translations/action.yml
name: "Notify Translations" description: "Notify in the issue for a translation when there's a new PR available" author: "Sebastián RamÃrez <******@****.***>" inputs: token: description: 'Token, to read the GitHub API. Can be passed in using {{ secrets.GITHUB_TOKEN }}' required: true runs: using: 'docker'
Others - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Aug 18 13:07:08 GMT 2021 - 346 bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
# Handling Errors There are many situations in which you need to notify an error to a client that is using your API. This client could be a browser with a frontend, a code from someone else, an IoT device, etc. You could need to tell the client that: * The client doesn't have enough privileges for that operation. * The client doesn't have access to that resource. * The item the client was trying to access doesn't exist. * etc.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/tutorial/security/index.md
### OAuth 1 There was an OAuth 1, which is very different from OAuth2, and more complex, as it included direct specifications on how to encrypt the communication. It is not very popular or used nowadays. OAuth2 doesn't specify how to encrypt the communication, it expects you to have your application served with HTTPS. !!! tip In the section about **deployment** you will see how to set up HTTPS for free, using Traefik and Let's Encrypt.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jun 24 14:47:15 GMT 2023 - 4.3K bytes - Viewed (0)