Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for converter (0.21 sec)

  1. docs/es/docs/advanced/response-change-status-code.md

    Por ejemplo, imagina que quieres retornar un HTTP status code de "OK" `200` por defecto.
    
    Pero si los datos no existen, quieres crearlos y retornar un HTTP status code de "CREATED" `201`.
    
    Pero aún quieres poder filtrar y convertir los datos que retornas con un `response_model`.
    
    Para esos casos, puedes usar un parámetro `Response`.
    
    ## Usar un parámetro `Response`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Feb 06 19:56:23 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. docs/es/docs/python-types.md

    * **Type checks**.
    
    ...y **FastAPI** usa las mismas declaraciones para:
    
    * **Definir requerimientos**: desde request path parameters, query parameters, headers, bodies, dependencies, etc.
    * **Convertir datos**: desde el request al tipo requerido.
    * **Validar datos**: viniendo de cada request:
        * Generando **errores automáticos** devueltos al cliente cuando los datos son inválidos.
    * **Documentar** la API usando OpenAPI:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. tests/test_typing_python39.py

    
    @needs_py310
    def test_typing():
        types = {
            list[int]: [1, 2, 3],
            dict[str, list[int]]: {"a": [1, 2, 3], "b": [4, 5, 6]},
            set[int]: [1, 2, 3],  # `set` is converted to `list`
            tuple[int, ...]: [1, 2, 3],  # `tuple` is converted to `list`
        }
        for test_type, expect in types.items():
            app = FastAPI()
    
            @app.post("/", response_model=test_type)
            def post_endpoint(input: test_type):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 709 bytes
    - Viewed (0)
  4. maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java

         */
        public static final ArtifactStatus GENERATED = new ArtifactStatus("generated", 1);
    
        /**
         * Low trust - was converted from the Maven 1.x repository.
         */
        public static final ArtifactStatus CONVERTED = new ArtifactStatus("converted", 2);
    
        /**
         * Moderate trust - it was deployed directly from a partner.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/UrlEscapers.java

       *       the same.
       *   <li>The special characters ".", "-", "*", and "_" remain the same.
       *   <li>The space character " " is converted into a plus sign "+".
       *   <li>All other characters are converted into one or more bytes using UTF-8 encoding and each
       *       byte is then represented by the 3-character string "%XY", where "XY" is the two-digit,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  6. docs_src/schema_extra_example/tutorial005.py

                        "price": 35.4,
                        "tax": 3.2,
                    },
                },
                "converted": {
                    "summary": "An example with converted data",
                    "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                    "value": {
                        "name": "Bar",
                        "price": "35.4",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. docs_src/schema_extra_example/tutorial005_an.py

                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
                        "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                        "value": {
                            "name": "Bar",
                            "price": "35.4",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  8. docs_src/schema_extra_example/tutorial005_an_py310.py

                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
                        "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                        "value": {
                            "name": "Bar",
                            "price": "35.4",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java

    import org.codehaus.plexus.component.configurator.ConfigurationListener;
    import org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter;
    import org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup;
    import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py

                                            },
                                        },
                                        "converted": {
                                            "summary": "An example with converted data",
                                            "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                                            "value": {"name": "Bar", "price": "35.4"},
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.8K bytes
    - Viewed (0)
Back to top