Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1181 - 1190 of 1,838 for inf2 (0.03 sec)

  1. docs/zh/docs/tutorial/bigger-applications.md

    # 更大的应用 - 多个文件
    
    如果你正在开发一个应用程序或 Web API,很少会将所有的内容都放在一个文件中。
    
    **FastAPI** 提供了一个方便的工具,可以在保持所有灵活性的同时构建你的应用程序。
    
    /// info
    
    如果你来自 Flask,那这将相当于 Flask 的 Blueprints。
    
    ///
    
    ## 一个文件结构示例
    
    假设你的文件结构如下:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   ├── dependencies.py
    │   └── routers
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   └── users.py
    │   └── internal
    │       ├── __init__.py
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py

    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "put": {
                        "responses": {
                            "200": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_param_models/test_tutorial002.py

        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/": {
                        "get": {
                            "summary": "Read Items",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_param_models/test_tutorial001.py

        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/": {
                        "get": {
                            "summary": "Read Items",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. docs/ru/docs/deployment/manually.md

    //// tab | Uvicorn
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --host 0.0.0.0 --port 80
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ////
    
    //// tab | Hypercorn
    
    <div class="termy">
    
    ```console
    $ hypercorn main:app --bind 0.0.0.0:80
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/header-params.md

    Но помните, что когда вы импортируете `Query`, `Path`, `Header` и другие из `fastapi`, на самом деле это функции, которые возвращают специальные классы.
    
    ///
    
    /// info | "Дополнительная информация"
    
    Чтобы объявить заголовки, важно использовать `Header`, иначе параметры интерпретируются как query-параметры.
    
    ///
    
    ## Автоматическое преобразование
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="22"
    {!> ../../docs_src/dependencies/tutorial005.py!}
    ```
    
    ////
    
    /// info
    
    Notice that we are only declaring one dependency in the *path operation function*, the `query_or_cookie_extractor`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/path-operation-configuration.md

    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="21"
    {!> ../../docs_src/path_operation_configuration/tutorial005.py!}
    ```
    
    ////
    
    /// info
    
    Notice that `response_description` refers specifically to the response, the `description` refers to the *path operation* in general.
    
    ///
    
    /// check
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/TraverserUtilTest.java

            assertThat(set.contains(ResultPrinter.class.getName()), is(true));
            assertThat(set.contains(TestRunner.class.getName()), is(true));
            assertThat(set.contains("junit.textui.package-info"), is(false));
            assertThat(set.contains(junit.extensions.TestDecorator.class.getName()), is(not(true)));
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/header-params.md

    Aber erinnern Sie sich, dass, wenn Sie `Query`, `Path`,  `Header` und andere von `fastapi` importieren, diese tatsächlich Funktionen sind, welche spezielle Klassen zurückgeben.
    
    ///
    
    /// info
    
    Um Header zu deklarieren, müssen Sie `Header` verwenden, da diese Parameter sonst als Query-Parameter interpretiert werden würden.
    
    ///
    
    ## Automatische Konvertierung
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top