Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 296 for json (0.18 sec)

  1. docs/pt/docs/tutorial/schema-extra-example.md

    O **JSON Schema** na verdade não tem um campo `example` nos padrões. Versões recentes do JSON Schema definem um campo <a href="https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.5" class="external-link" target="_blank">`examples`</a>, mas o OpenAPI 3.0.3 é baseado numa versão mais antiga do JSON Schema que não tinha `examples`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  2. common-protos/k8s.io/apimachinery/pkg/runtime/generated.proto

    //
    // 	type MyAPIObject struct {
    // 		runtime.TypeMeta `json:",inline"`
    // 		MyPlugin runtime.Object `json:"myPlugin"`
    // 	}
    //
    // 	type PluginA struct {
    // 		AOption string `json:"aOption"`
    // 	}
    //
    // // External package:
    //
    // 	type MyAPIObject struct {
    // 		runtime.TypeMeta `json:",inline"`
    // 		MyPlugin runtime.RawExtension `json:"myPlugin"`
    // 	}
    //
    // 	type PluginA struct {
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/custom-response.md

    because by default, FastAPI will inspect every item inside and make sure it is serializable as JSON, using the same [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank} explained in the tutorial. This is what allows you to return **arbitrary objects**, for example database models.
    
    But if you are certain that the content that you are returning is **serializable with JSON**, you can pass it directly to the response class and avoid the extra overhead that FastAPI would...
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/handling-errors.md

    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Aber wenn der Client `http://example.com/items/bar` anfragt (ein nicht-existierendes `item_id` `"bar"`), erhält er einen HTTP-Statuscode 404 (der „Not Found“-Fehler), und eine JSON-Response wie folgt:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Et vous pouvez le faire même si le type de données dans la requête n'est pas au format JSON.
    
    Dans cet exemple, nous n'utilisons pas les fonctionnalités de FastAPI pour extraire le schéma JSON des modèles Pydantic ni la validation automatique pour JSON. En fait, nous déclarons le type de contenu de la requête en tant que YAML, et non JSON :
    
    ```Python hl_lines="17-22  24"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/body-multiple-params.md

    {!../../../docs_src/body_multiple_params/tutorial001.py!}
    ```
    
    !!! note "참고"
        이 경우에는 본문으로 부터 가져온 `	item`은 기본값이 `None`이기 때문에, 선택사항이라는 점을 유의해야 합니다.
    
    ## 다중 본문 매개변수
    
    이전 예제에서 보듯이, *경로 작동*은 아래와 같이 `Item` 속성을 가진 JSON 본문을 예상합니다:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    하지만, 다중 본문 매개변수 역시 선언할 수 있습니다. 예. `item`과 `user`:
    
    ```Python hl_lines="22"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/body.md

    Наприклад, ця модель вище оголошує JSON "`об'єкт`" (або Python `dict`), як:
    
    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...оскільки `description` і `tax` є необов'язковими (зі значенням за замовчуванням `None`), цей JSON "`об'єкт`" також буде дійсним:
    
    ```JSON
    {
        "name": "Foo",
        "price": 45.2
    }
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/first-steps.md

    Nesse caso, significaria os atributos JSON e os tipos de dados que eles possuem, etc.
    
    #### OpenAPI e JSON *Schema*
    
    OpenAPI define um *schema* de API para sua API. E esse *schema* inclui definições (ou "*schemas*") dos dados enviados e recebidos por sua API usando **JSON *Schema***, o padrão para *schemas* de dados JSON.
    
    #### Verifique o `openapi.json`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/handling-errors.md

    
    ```
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Mas se o cliente faz uma requisição para `http://example.com/items/bar` (ou seja, um não existente `item_id "bar"`), esse cliente receberá um HTTP status code 404 (o erro "não encontrado" — *not found error*), e uma resposta JSON:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    !!! tip "Dica"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  10. docs/de/docs/reference/websockets.md

                - receive
                - send
                - accept
                - receive_text
                - receive_bytes
                - receive_json
                - iter_text
                - iter_bytes
                - iter_json
                - send_text
                - send_bytes
                - send_json
                - close
    
    Wenn ein Client die Verbindung trennt, wird eine `WebSocketDisconnect`-Exception ausgelöst, die Sie abfangen können.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:16:27 GMT 2024
    - 1.8K bytes
    - Viewed (0)
Back to top