Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 801 - 810 of 1,257 for Info (0.02 seconds)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

    
    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": {
                "/items/{item_id}": {
                    "put": {
                        "responses": {
                            "200": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py

    
    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": {
                "/items/": {
                    "get": {
                        "responses": {
                            "200": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

        mod_name = mod_name[:11]
    
        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/": {
                    "post": {
                        "summary": "Create an item",
                        "description": DESCRIPTIONS[mod_name],
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 7K bytes
    - Click Count (0)
  4. buildscripts/minio-iam-ldap-upgrade-import-test.sh

    	set -x
    	mc alias set new-minio http://localhost:9000 minioadmin minioadmin
    	echo "BEFORE IMPORT mappings:"
    	mc ready new-minio
    	mc idp ldap policy entities new-minio
    	mc admin cluster iam import new-minio ./old-minio-iam-info.zip
    	echo "AFTER IMPORT mappings:"
    	mc idp ldap policy entities new-minio
    	set +x
    
    	# mc admin service stop new-minio
    }
    
    verify_iam_content_in_new_minio() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Nov 11 15:01:29 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/dependencies/sub-dependencies.md

    ## Usa la dependencia { #use-the-dependency }
    
    Entonces podemos usar la dependencia con:
    
    {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[23] *}
    
    /// info | Información
    
    Fíjate que solo estamos declarando una dependencia en la *path operation function*, `query_or_cookie_extractor`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/additional-responses.md

    例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
    {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *}
    
    /// note
    
    请记住,您必须直接返回 `JSONResponse` 。
    
    ///
    
    /// info
    
    `model` 密钥不是OpenAPI的一部分。
    **FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。
    - 正确的位置是:
        - 在键 `content` 中,其具有另一个`JSON`对象( `dict` )作为值,该`JSON`对象包含:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Nov 09 16:29:26 GMT 2024
    - 8.1K bytes
    - Click Count (0)
  7. docs/en/docs/tutorial/request-files.md

    # Request Files { #request-files }
    
    You can define files to be uploaded by the client using `File`.
    
    /// info
    
    To receive uploaded files, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example:
    
    ```console
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/request-files.md

    # Arquivos de Requisição { #request-files }
    
    Você pode definir arquivos para serem enviados pelo cliente usando `File`.
    
    /// info | Informação
    
    Para receber arquivos enviados, primeiro instale o <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    Garanta que você criou um [ambiente virtual](../virtual-environments.md){.internal-link target=_blank}, o ativou e então o instalou, por exemplo:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/body.md

    Para declarar un **request** body, usas modelos de <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> con todo su poder y beneficios.
    
    /// info | Información
    
    Para enviar datos, deberías usar uno de estos métodos: `POST` (el más común), `PUT`, `DELETE` o `PATCH`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  10. docs/en/docs/python-types.md

    As the type, put `list`.
    
    As the list is a type that contains some internal types, you put them in square brackets:
    
    {* ../../docs_src/python_types/tutorial006_py39.py hl[1] *}
    
    /// info
    
    Those internal types in the square brackets are called "type parameters".
    
    In this case, `str` is the type parameter passed to `list`.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.6K bytes
    - Click Count (0)
Back to Top