Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Otherwise (0.17 sec)

  1. docs/en/docs/how-to/index.md

    Most of these ideas would be more or less **independent**, and in most cases you should only need to study them if they apply directly to **your project**.
    
    If something seems interesting and useful to your project, go ahead and check it, but otherwise, you might probably just skip them.
    
    !!! tip
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 591 bytes
    - Viewed (0)
  2. fastapi/utils.py

    ) -> Union[DefaultPlaceholder, DefaultType]:
        """
        Pass items or `DefaultPlaceholder`s by descending priority.
    
        The first one to _not_ be a `DefaultPlaceholder` will be returned.
    
        Otherwise, the first item (a `DefaultPlaceholder`) will be returned.
        """
        items = (first_item,) + extra_items
        for item in items:
            if not isinstance(item, DefaultPlaceholder):
                return item
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. LICENSE

    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Dec 08 07:57:18 GMT 2018
    - 1.1K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/path-params.md

    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003.py!}
    ```
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    ```Python hl_lines="6  11"
    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)
  5. docs/en/docs/tutorial/cookie-params.md

        But remember that when you import `Query`, `Path`, `Cookie` and others from `fastapi`, those are actually functions that return special classes.
    
    !!! info
        To declare cookies, you need to use `Cookie`, because otherwise the parameters would be interpreted as query parameters.
    
    ## Recap
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-model.md

    FastAPI does several things internally with Pydantic to make sure that those same rules of class inheritance are not used for the returned data filtering, otherwise you could end up returning much more data than what you expected.
    
    This way, you can get the best of both worlds: type annotations with **tooling support** and **data filtering**.
    
    ## See it in the docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/https.md

        * As we said above, only one process can be listening on a specific IP and port.
        * This is one of the reasons why it's very useful when the same TLS Termination Proxy also takes care of the certificate renewal process.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  8. docs/en/layouts/custom.yml

    # FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
    # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
    # IN THE SOFTWARE.
    
    # -----------------------------------------------------------------------------
    # Configuration
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jun 26 14:05:43 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  9. docs/en/docs/js/termynal.js

            this.loadLines()
            if (!options.noInit) this.init()
        }
    
        loadLines() {
            // Load all the lines and create the container so that the size is fixed
            // Otherwise it would be changing and the user viewport would be constantly
            // moving as she/he scrolls
            const finish = this.generateFinish()
            finish.style.visibility = 'hidden'
    JavaScript
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/query-params.md

    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    or any other case variation (uppercase, first letter in uppercase, etc), your function will see the parameter `short` with a `bool` value of `True`. Otherwise as `False`.
    
    
    ## Multiple path and query parameters
    
    You can declare multiple path parameters and query parameters at the same time, **FastAPI** knows which is which.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Oct 20 09:08:42 GMT 2023
    - 5.1K bytes
    - Viewed (0)
Back to top