- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for Slet (0.76 sec)
-
docs/en/docs/tutorial/testing.md
## Testing: extended example Now let's extend this example and add more details to see how to test different parts. ### Extended **FastAPI** app file Let's continue with the same file structure as before: ``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
```Python hl_lines="10" {!> ../../../docs_src/security/tutorial001.py!} ``` But that is still not that useful. Let's make it give us the current user. ## Create a user model First, let's create a Pydantic user model. The same way we use Pydantic to declare bodies, we can use it anywhere else: === "Python 3.10+" ```Python hl_lines="5 12-16"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 7.6K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
Several of these are explored in the next chapters of the tutorial. ## Order matters When creating *path operations*, you can find situations where you have a fixed path. Like `/users/me`, let's say that it's to get data about the current user. And then you can also have a path `/users/{user_id}` to get data about a specific user by some user ID.
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/advanced/testing-database.md
The main idea is exactly the same you saw in that previous chapter. ## Add tests for the SQL app Let's update the example from [SQL (Relational) Databases](../tutorial/sql-databases.md){.internal-link target=_blank} to use a testing database. All the app code is the same, you can go back to that chapter check how it was.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.5K bytes - Viewed (0) -
docs/de/docs/project-generation.md
* Traefik-Integration, einschließlich automatischer Generierung von Let's Encrypt-**HTTPS**-Zertifikaten. * GitLab **CI** (kontinuierliche Integration), einschließlich Frontend- und Backend-Testen. ## Full Stack FastAPI Couchbase
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:14:36 GMT 2024 - 6.5K bytes - Viewed (0) -
docs/en/docs/deployment/manually.md
``` </div> That would work for most of the cases. 😎 You could use that command for example to start your **FastAPI** app in a container, in a server, etc. ## ASGI Servers Let's go a little deeper into the details. FastAPI uses a standard for building Python web frameworks and servers called <abbr title="Asynchronous Server Gateway Interface">ASGI</abbr>. FastAPI is an ASGI web framework.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
# Security - First Steps Let's imagine that you have your **backend** API in some domain. And you have a **frontend** in another domain or in a different path of the same domain (or in a mobile application). And you want to have a way for the frontend to authenticate with the backend, using a **username** and **password**. We can use **OAuth2** to build that with **FastAPI**.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.9K bytes - Viewed (0) -
docs/en/docs/how-to/nosql-databases-couchbase.md
### `User` model First, let's create a `User` model: ```Python hl_lines="24-28" {!../../../docs_src/nosql_databases/tutorial001.py!} ``` We will use this model in our *path operation function*, so, we don't include in it the `hashed_password`. ### `UserInDB` model Now, let's create a `UserInDB` model. This will have the data that is actually stored in the database.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 6K bytes - Viewed (0) -
docs/en/docs/tutorial/body-multiple-params.md
# Body - Multiple Parameters Now that we have seen how to use `Path` and `Query`, let's see more advanced uses of request body declarations. ## Mix `Path`, `Query` and body parameters First, of course, you can mix `Path`, `Query` and request body parameter declarations freely and **FastAPI** will know what to do. And you can also declare body parameters as optional, by setting the default to `None`: === "Python 3.10+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 7.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/security/index.md
!!! tip "Подсказка" В разделе **Развертывание** вы увидите [как настроить протокол HTTPS бесплатно, используя Traefik и Let's Encrypt.](https://fastapi.tiangolo.com/ru/deployment/https/) ## OpenID Connect OpenID Connect - это еще один протокол, основанный на **OAuth2**.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Aug 02 15:14:19 GMT 2023 - 8.3K bytes - Viewed (0)