Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for Solo (0.15 sec)

  1. docs/it/docs/index.md

    * `main`: il file `main.py` (il "modulo" Python).
    * `app`: l'oggetto creato dentro `main.py` con la riga di codice `app = FastAPI()`.
    * `--reload`: ricarica il server se vengono rilevati cambiamenti del codice. Usalo solo durante la fase di sviluppo.
    
    </details>
    
    ### Testa l'API
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. docs/es/docs/index.md

    * `main`: el archivo `main.py` (el"modulo" de Python).
    * `app`: el objeto creado dentro de `main.py` con la línea `app = FastAPI()`.
    * `--reload`: hace que el servidor se reinicie después de cambios en el código. Esta opción solo debe ser usada en desarrollo.
    
    </details>
    
    ### Revísalo
    
    Abre tu navegador en <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/first-steps.md

    ### OpenAPI
    
    **FastAPI** genera un "schema" con toda tu API usando el estándar para definir APIs, **OpenAPI**.
    
    #### "Schema"
    
    Un "schema" es una definición o descripción de algo. No es el código que la implementa, sino solo una descripción abstracta.
    
    #### "Schema" de la API
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  4. docs_src/handling_errors/tutorial003.py

            status_code=418,
            content={"message": f"Oops! {exc.name} did something. There goes a rainbow..."},
        )
    
    
    @app.get("/unicorns/{name}")
    async def read_unicorn(name: str):
        if name == "yolo":
            raise UnicornException(name=name)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 626 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_handling_errors/test_tutorial003.py

        assert response.json() == {"unicorn_name": "shinny"}
    
    
    def test_get_exception():
        response = client.get("/unicorns/yolo")
        assert response.status_code == 418, response.text
        assert response.json() == {
            "message": "Oops! yolo did something. There goes a rainbow..."
        }
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/main/resources/fess_indices/fess/gl/stopwords.txt

    nas
    neste
    nin
    no
    non
    nos
    nosa
    nosas
    noso
    nosos
    nós
    nun
    nunha
    nuns
    nunhas
    o
    os
    ou
    ó
    ós
    para
    pero
    pode
    pois
    pola
    polas
    polo
    polos
    por
    que
    se
    senón
    ser
    seu
    seus
    sexa
    sido
    sobre
    súa
    súas
    tamén
    tan
    te
    ten
    teñen
    teño
    ter
    teu
    teus
    ti
    tido
    tiña
    Plain Text
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Jul 19 06:31:02 GMT 2018
    - 932 bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/handling-errors.md

    {!../../../docs_src/handling_errors/tutorial003.py!}
    ```
    
    Здесь, если запросить `/unicorns/yolo`, то *операция пути* вызовет `UnicornException`.
    
    Но оно будет обработано `unicorn_exception_handler`.
    
    Таким образом, вы получите чистую ошибку с кодом состояния HTTP `418` и содержимым JSON:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    !!! note "Технические детали"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/handling-errors.md

    {!../../../docs_src/handling_errors/tutorial003.py!}
    ```
    
    Here, if you request `/unicorns/yolo`, the *path operation* will `raise` a `UnicornException`.
    
    But it will be handled by the `unicorn_exception_handler`.
    
    So, you will receive a clean error, with an HTTP status code of `418` and a JSON content of:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    !!! note "Technical Details"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/handling-errors.md

    ```
    
    Nesse cenário, se você fizer uma requisição para `/unicorns/yolo`, a *operação de caminho* vai lançar (`raise`) o `UnicornException`.
    
    Essa exceção será manipulada, contudo, pelo `unicorn_exception_handler`.
    
    Dessa forma você receberá um erro "limpo", com o HTTP status code `418` e um JSON com o conteúdo:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    !!! note "Detalhes Técnicos"
    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/zh/docs/tutorial/handling-errors.md

    ```Python hl_lines="5-7  13-18  24"
    {!../../../docs_src/handling_errors/tutorial003.py!}
    
    ```
    
    请求 `/unicorns/yolo` 时,路径操作会触发 `UnicornException`。
    
    但该异常将会被 `unicorn_exception_handler` 处理。
    
    接收到的错误信息清晰明了,HTTP 状态码为 `418`,JSON 内容如下:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    
    ```
    
    !!! note "技术细节"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top