Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for Roth (0.12 sec)

  1. docs/en/docs/how-to/separate-openapi-schemas.md

    * for **output** it will be **required** (and possibly `None`, or in JSON terms, `null`)
    
    ### Model for Output in Docs
    
    You can check the output model in the docs too, **both** `name` and `description` are marked as **required** with a **red asterisk**:
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image03.png">
    </div>
    
    ### Model for Input and Output in Docs
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/handling-errors.md

    This way, if any part of Starlette's internal code, or a Starlette extension or plug-in, raises a Starlette `HTTPException`, your handler will be able to catch and handle it.
    
    In this example, to be able to have both `HTTPException`s in the same code, Starlette's exceptions is renamed to `StarletteHTTPException`:
    
    ```Python
    from starlette.exceptions import HTTPException as StarletteHTTPException
    ```
    
    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)
  3. docs/en/docs/reference/httpconnection.md

    # `HTTPConnection` class
    
    When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`.
    
    You can import it from `fastapi.requests`:
    
    ```python
    from fastapi.requests import HTTPConnection
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 359 bytes
    - Viewed (0)
  4. tests/test_empty_router.py

            response = client.get("/prefix/")
            assert response.status_code == 200, response.text
            assert response.json() == ["OK"]
    
    
    def test_include_empty():
        # if both include and router.path are empty - it should raise exception
        with pytest.raises(FastAPIError):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 22:37:34 GMT 2023
    - 805 bytes
    - Viewed (0)
  5. docs/en/docs/index.md

    You will see the JSON response as:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    You already created an API that:
    
    * Receives HTTP requests in the _paths_ `/` and `/items/{item_id}`.
    * Both _paths_ take `GET` operations (also known as HTTP _methods_).
    * The _path_ `/items/{item_id}` has a _path parameter_ `item_id` that should be an `int`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  6. fastapi/dependencies/utils.py

    )
    
    
    def check_file_field(field: ModelField) -> None:
        field_info = field.field_info
        if isinstance(field_info, params.Form):
            try:
                # __version__ is available in both multiparts, and can be mocked
                from multipart import __version__  # type: ignore
    
                assert __version__
                try:
                    # parse_options_header is only available in the right multipart
    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)
  7. docs/en/docs/tutorial/sql-databases.md

        These Pydantic models define more or less a "schema" (a valid data shape).
    
        So this will help us avoiding confusion while using both.
    
    ### Create initial Pydantic *models* / schemas
    
    Create an `ItemBase` and `UserBase` Pydantic *models* (or let's say "schemas") to have common attributes while creating or reading data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  8. docs/en/docs/deployment/server-workers.md

    ## Install Gunicorn and Uvicorn
    
    <div class="termy">
    
    ```console
    $ pip install "uvicorn[standard]" gunicorn
    
    ---> 100%
    ```
    
    </div>
    
    That will install both Uvicorn with the `standard` extra packages (to get high performance) and Gunicorn.
    
    ## Run Gunicorn with Uvicorn Workers
    
    Then you can run Gunicorn with:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. fastapi/routing.py

                    name = getattr(r, "name", "unknown")
                    if path is not None and not path:
                        raise FastAPIError(
                            f"Prefix and path cannot be both empty (path operation: {name})"
                        )
            if responses is None:
                responses = {}
            for route in router.routes:
                if isinstance(route, APIRoute):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top