Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for 302 (0.01 sec)

  1. tests/test_tutorial/test_custom_response/test_tutorial006c.py

    from docs_src.custom_response.tutorial006c_py39 import app
    
    client = TestClient(app)
    
    
    def test_redirect_status_code():
        response = client.get("/pydantic", follow_redirects=False)
        assert response.status_code == 302
        assert response.headers["location"] == "https://docs.pydantic.dev/"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 904 bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial006c_py39.py

    from fastapi import FastAPI
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/pydantic", response_class=RedirectResponse, status_code=302)
    async def redirect_pydantic():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 237 bytes
    - Viewed (0)
  3. docs_src/additional_responses/tutorial004_py310.py

    from fastapi.responses import FileResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    responses = {
        404: {"description": "Item not found"},
        302: {"description": "The item was moved"},
        403: {"description": "Not enough privileges"},
    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 669 bytes
    - Viewed (0)
  4. docs_src/additional_responses/tutorial004_py39.py

    from fastapi.responses import FileResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    responses = {
        404: {"description": "Item not found"},
        302: {"description": "The item was moved"},
        403: {"description": "Not enough privileges"},
    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 701 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_additional_responses/test_tutorial004.py

            "paths": {
                "/items/{item_id}": {
                    "get": {
                        "responses": {
                            "404": {"description": "Item not found"},
                            "302": {"description": "The item was moved"},
                            "403": {"description": "Not enough privileges"},
                            "200": {
                                "description": "Successful Response",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. doap_Maven.rdf

    maven/source/apache-maven-3.0.3-src.tar.gz Apache Maven 3.0.2 2011-01-12 3.0.2 http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.2-bin.zip http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.2-bin.tar.gz http://archive.apache.org/dist/maven/source/apache-maven-3.0.2-src.zip http://archive.apache.org/dist/maven/source/apache-maven-3.0.2-src.tar.gz Apache Maven 3.0.1 2010-11-23 3.0.1 http://archive.apache.org/dist/maven/binaries/apache-maven-3.0.1-bin.zip http://archive.apa...
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 21:54:15 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/first-steps.md

    다음과 같이 시작하는 JSON을 확인할 수 있습니다:
    
    ```JSON
    {
        "openapi": "3.0.2",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "responses": {
                        "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. docs/fr/docs/tutorial/first-steps.md

    Le schéma devrait ressembler à ceci :
    
    
    ```JSON
    {
        "openapi": "3.0.2",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "responses": {
                        "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/first-steps.md

    次の場所で直接確認できます: <a href="http://127.0.0.1:8000/openapi.json" class="external-link" target="_blank">http://127.0.0.1:8000/openapi.json</a>.
    
    次のようなJSONが表示されます。
    
    ```JSON
    {
        "openapi": "3.0.2",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "responses": {
                        "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          MockResponse(
            code = 302,
            headers = headersOf("Location", "/b"),
            body = "A",
          ),
        )
        server.enqueue(MockResponse(body = "B"))
        client =
          client
            .newBuilder()
            .followRedirects(false)
            .build()
        executeSynchronously("/a")
          .assertBody("A")
          .assertCode(302)
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
Back to top