Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 716 for OpenAPI (0.07 sec)

  1. docs/en/docs/how-to/configure-swagger-ui.md

    <img src="/img/tutorial/extending-openapi/image02.png">
    
    But you can disable it by setting `syntaxHighlight` to `False`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *}
    
    ...and then Swagger UI won't show the syntax highlighting anymore:
    
    <img src="/img/tutorial/extending-openapi/image03.png">
    
    ## Change the Theme
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:50:52 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. go.mod

    	github.com/go-ole/go-ole v1.3.0 // indirect
    	github.com/go-openapi/analysis v0.23.0 // indirect
    	github.com/go-openapi/errors v0.22.0 // indirect
    	github.com/go-openapi/jsonpointer v0.21.0 // indirect
    	github.com/go-openapi/jsonreference v0.21.0 // indirect
    	github.com/go-openapi/runtime v0.28.0 // indirect
    	github.com/go-openapi/spec v0.21.0 // indirect
    	github.com/go-openapi/strfmt v0.23.0 // indirect
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. docs/ja/docs/advanced/custom-response.md

    ```
    
    /// warning | "注意"
    
    *path operation関数* から直接返される `Response` は、OpenAPIにドキュメントされず (例えば、 `Content-Type` がドキュメントされない) 、自動的な対話的ドキュメントからも閲覧できません。
    
    ///
    
    /// info | "情報"
    
    もちろん、実際の `Content-Type` ヘッダーやステータスコードなどは、返された `Response` オブジェクトに由来しています。
    
    ///
    
    ### OpenAPIドキュメントと `Response` のオーバーライド
    
    関数の中でレスポンスをオーバーライドしつつも、OpenAPI に「メディアタイプ」をドキュメント化したいなら、 `response_class` パラメータを使い、 `Response` オブジェクトを返します。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/behind-a-proxy.md

    Das Frontend (das im Browser läuft) würde also versuchen, `/openapi.json` zu erreichen und wäre nicht in der Lage, das OpenAPI-Schema abzurufen.
    
    Da wir für unsere Anwendung einen Proxy mit dem Pfadpräfix `/api/v1` haben, muss das Frontend das OpenAPI-Schema unter `/api/v1/openapi.json` abrufen.
    
    ```mermaid
    graph LR
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/behind-a-proxy.md

    哪怕所有代码都假设只有 `/app`。
    
    代理只在把请求传送给 Uvicorn 之前才会**移除路径前缀**,让应用以为它是在 `/app` 提供服务,因此不必在代码中加入前缀 `/api/v1`。
    
    但之后,在(前端)打开 API 文档时,代理会要求在 `/openapi.json`,而不是 `/api/v1/openapi.json` 中提取 OpenAPI 概图。
    
    因此, (运行在浏览器中的)前端会尝试访问 `/openapi.json`,但没有办法获取 OpenAPI 概图。
    
    这是因为应用使用了以 `/api/v1` 为路径前缀的代理,前端要从 `/api/v1/openapi.json`  中提取 OpenAPI 概图。
    
    ```mermaid
    graph LR
    
    browser("Browser")
    proxy["Proxy on http://0.0.0.0:9999/api/v1/app"]
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_models/test_tutorial005_py39.py

        assert response.json() == {"foo": 2.3, "bar": 3.4}
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        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": {
                "/keyword-weights/": {
                    "get": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. docs/ru/docs/alternatives.md

    ///
    
    ### <a href="https://swagger.io/" class="external-link" target="_blank">Swagger</a> / <a href="https://github.com/OAI/OpenAPI-Specification/" class="external-link" target="_blank">OpenAPI</a>
    
    Главной функцией, которую я хотел унаследовать от Django REST Framework, была автоматическая документация API.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/security/index.md

    Ela não é muito popular ou usada nos dias de hoje.
    
    ## OpenAPI
    
    OpenAPI (anteriormente conhecido como Swagger) é a especificação aberta para a criação de APIs (agora parte da Linux Foundation).
    
    **FastAPI** é baseado no **OpenAPI**.
    
    Isso é o que torna possível ter múltiplas automações interativas de interfaces de documentação, geração de código, etc.
    
    OpenAPI tem uma forma para definir múltiplos “esquemas” de segurança.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. tests/test_response_by_alias.py

                        "proper OpenAPI use another model with the correct field names"
                    )
                }
            )
        else:
    
            class Config:
                schema_extra = {
                    "description": (
                        "response_model_by_alias=False is basically a quick hack, to support "
                        "proper OpenAPI use another model with the correct field names"
                    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_events/test_tutorial002.py

    
    def test_openapi_schema(app: FastAPI):
        with TestClient(app) as client:
            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/": {
                        "get": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top