Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for specs (0.14 sec)

  1. fastapi/security/oauth2.py

    
        grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".
            This dependency is strict about it. If you want to be permissive, use instead the
            OAuth2PasswordRequestForm dependency class.
        username: username string. The OAuth2 spec requires the exact field name "username".
        password: password string. The OAuth2 spec requires the exact field name "password".
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. bin/diff_yaml.py

                return res
    
            raise
    
    
    def normalize_ports(res):
        try:
            spec = res["spec"]
            if spec is None:
                return res
            ports = sorted(spec['ports'], key=lambda x: x["port"])
            spec['ports'] = ports
    
            return res
        except KeyError as ke:
            if 'spec' in str(ke) or 'ports' in str(ke) or 'port' in str(ke):
                return res
    
            raise
    
    
    Python
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  3. fastapi/openapi/docs.py

            padding: 0;
          }}
        </style>
        </head>
        <body>
        <noscript>
            ReDoc requires Javascript to function. Please enable it to browse the documentation.
        </noscript>
        <redoc spec-url="{openapi_url}"></redoc>
        <script src="{redoc_js_url}"> </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    def get_swagger_ui_oauth2_redirect_html() -> HTMLResponse:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top