Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 739 for openapi (0.04 seconds)

  1. docs/es/docs/tutorial/metadata.md

    ## URL de OpenAPI { #openapi-url }
    
    Por defecto, el esquema OpenAPI se sirve en `/openapi.json`.
    
    Pero puedes configurarlo con el parámetro `openapi_url`.
    
    Por ejemplo, para configurarlo para que se sirva en `/api/v1/openapi.json`:
    
    {* ../../docs_src/metadata/tutorial002_py39.py hl[3] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  2. fastapi/security/open_id_connect_url.py

                    It will be included in the generated OpenAPI (e.g. visible at `/docs`).
                    """
                ),
            ] = None,
            description: Annotated[
                Optional[str],
                Doc(
                    """
                    Security scheme description.
    
                    It will be included in the generated OpenAPI (e.g. visible at `/docs`).
                    """
                ),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. tests/test_request_params/test_form/utils.py

    from typing import Any
    
    
    def get_body_model_name(openapi: dict[str, Any], path: str) -> str:
        body = openapi["paths"][path]["post"]["requestBody"]
        body_schema = body["content"]["application/x-www-form-urlencoded"]["schema"]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 285 bytes
    - Click Count (0)
  4. tests/test_tutorial/test_metadata/test_tutorial002.py

    
    def test_get_openapi_json_default_url():
        response = client.get("/openapi.json")
        assert response.status_code == 404, response.text
    
    
    def test_openapi_schema():
        response = client.get("/api/v1/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {
                "title": "FastAPI",
                "version": "0.1.0",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  5. docs/uk/docs/tutorial/security/index.md

    Це була зовсім інша система, і сьогодні вона майже не використовується.
    
    ## OpenAPI
    
    OpenAPI (раніше Swagger) — це специфікація для побудови API (тепер під егідою Linux Foundation).
    
    **FastAPI** базується на **OpenAPI**.
    
    Завдяки цьому Ви отримуєте автоматичну інтерактивну документацію, генерацію коду та багато іншого.
    
    OpenAPI дозволяє описувати різні "схеми" безпеки.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Jun 24 18:57:48 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_handling_errors/test_tutorial006.py

        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": 2}
    
    
    def test_openapi_schema():
        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}": {
                    "get": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  7. tests/test_generate_unique_id_function.py

        def post_router(item1: Item, item2: Item):
            return item1, item2  # pragma: nocover
    
        app.include_router(router)
        client = TestClient(app)
        response = client.get("/openapi.json")
        data = response.json()
        assert data == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "post": {
                        "summary": "Post Root",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 66.7K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/body-fields.md

    /// warning
    
    Додаткові ключі, передані в `Field`, також будуть присутні у згенерованій схемі OpenAPI для вашого додатка.
    Оскільки ці ключі не обов'язково можуть бути частиною специфікації OpenAPI, деякі інструменти OpenAPI, наприклад, [OpenAPI валідатор](https://validator.swagger.io/), можуть не працювати з вашою згенерованою схемою.
    
    ///
    
    ## Підсумок
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 3.7K bytes
    - Click Count (0)
  9. tests/test_security_http_basic_realm.py

        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_openapi_schema():
        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": {
                "/users/me": {
                    "get": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_additional_responses/test_tutorial001.py

        assert response.json() == {"message": "Item not found"}
    
    
    def test_openapi_schema():
        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}": {
                    "get": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top