Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for teleport (0.14 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial003_02.py

                                "required": False,
                                "schema": {
                                    "title": "Teleport",
                                    "type": "boolean",
                                    "default": False,
                                },
                                "name": "teleport",
                                "in": "query",
                            }
                        ],
                        "responses": {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_model/test_tutorial003_05_py310.py

                                "required": False,
                                "schema": {
                                    "title": "Teleport",
                                    "type": "boolean",
                                    "default": False,
                                },
                                "name": "teleport",
                                "in": "query",
                            }
                        ],
                        "responses": {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. docs_src/response_model/tutorial003_04.py

    from typing import Union
    
    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Union[Response, dict]:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 384 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_response_model/test_tutorial003_03.py

        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/teleport": {
                    "get": {
                        "summary": "Get Teleport",
                        "operationId": "get_teleport_teleport_get",
                        "responses": {
                            "200": {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. docs_src/response_model/tutorial003_05_py310.py

    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal", response_model=None)
    async def get_portal(teleport: bool = False) -> Response | dict:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 373 bytes
    - Viewed (0)
  6. docs_src/response_model/tutorial003_05.py

    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal", response_model=None)
    async def get_portal(teleport: bool = False) -> Union[Response, dict]:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 405 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial003_05.py

                                "required": False,
                                "schema": {
                                    "title": "Teleport",
                                    "type": "boolean",
                                    "default": False,
                                },
                                "name": "teleport",
                                "in": "query",
                            }
                        ],
                        "responses": {
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. docs_src/response_model/tutorial003_04_py310.py

    from fastapi import FastAPI, Response
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response | dict:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 352 bytes
    - Viewed (0)
  9. docs_src/response_model/tutorial003_02.py

    from fastapi import FastAPI, Response
    from fastapi.responses import JSONResponse, RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/portal")
    async def get_portal(teleport: bool = False) -> Response:
        if teleport:
            return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 381 bytes
    - Viewed (0)
  10. docs_src/response_model/tutorial003_03.py

    from fastapi import FastAPI
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/teleport")
    async def get_teleport() -> RedirectResponse:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 10 16:22:47 UTC 2023
    - 241 bytes
    - Viewed (0)
Back to top