Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for hey (0.01 seconds)

  1. docs/en/docs/advanced/generate-clients.md

    That same information from the models that is included in OpenAPI is what can be used to **generate the client code**.
    
    ### Hey API { #hey-api }
    
    Once we have a FastAPI app with the models, we can use Hey API to generate a TypeScript client. The fastest way to do that is via npx.
    
    ```sh
    npx @hey-api/openapi-ts -i http://localhost:8000/openapi.json -o src/client
    ```
    
    This will generate a TypeScript SDK in `./src/client`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.1K bytes
    - Click Count (1)
  2. docs/de/docs/advanced/generate-clients.md

    ### Hey API { #hey-api }
    
    Sobald wir eine FastAPI-App mit den Modellen haben, können wir Hey API verwenden, um einen TypeScript-Client zu generieren. Der schnellste Weg das zu tun, ist über npx.
    
    ```sh
    npx @hey-api/openapi-ts -i http://localhost:8000/openapi.json -o src/client
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  3. docs/pt/docs/advanced/generate-clients.md

    E essas mesmas informações dos modelos que estão incluídas no OpenAPI são o que pode ser usado para **gerar o código do cliente**.
    
    ### Hey API { #hey-api }
    
    Depois que tivermos uma aplicação FastAPI com os modelos, podemos usar o Hey API para gerar um cliente TypeScript. A forma mais rápida é via npx.
    
    ```sh
    npx @hey-api/openapi-ts -i http://localhost:8000/openapi.json -o src/client
    ```
    
    Isso gerará um SDK TypeScript em `./src/client`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  4. docs/ru/docs/advanced/generate-clients.md

    Та же информация из моделей, включённая в OpenAPI, может использоваться для **генерации клиентского кода**.
    
    ### Hey API { #hey-api }
    
    Как только у нас есть приложение FastAPI с моделями, мы можем использовать Hey API для генерации TypeScript‑клиента. Самый быстрый способ сделать это — через npx.
    
    ```sh
    npx @hey-api/openapi-ts -i http://localhost:8000/openapi.json -o src/client
    ```
    
    Это сгенерирует TypeScript SDK в `./src/client`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  5. docs/es/docs/advanced/generate-clients.md

    ### Hey API { #hey-api }
    
    Una vez que tenemos una app de FastAPI con los modelos, podemos usar Hey API para generar un cliente de TypeScript. La forma más rápida de hacerlo es con npx.
    
    ```sh
    npx @hey-api/openapi-ts -i http://localhost:8000/openapi.json -o src/client
    ```
    
    Esto generará un SDK de TypeScript en `./src/client`.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  6. docs_src/python_types/tutorial009_py39.py

    from typing import Optional
    
    
    def say_hi(name: Optional[str] = None):
        if name is not None:
            print(f"Hey {name}!")
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 164 bytes
    - Click Count (0)
  7. docs_src/python_types/tutorial009b_py39.py

    from typing import Union
    
    
    def say_hi(name: Union[str, None] = None):
        if name is not None:
            print(f"Hey {name}!")
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 164 bytes
    - Click Count (0)
  8. docs_src/python_types/tutorial009c_py39.py

    from typing import Optional
    
    
    def say_hi(name: Optional[str]):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 89 bytes
    - Click Count (0)
  9. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

            module.say_hi("FastAPI")
            module.say_hi()
    
        assert mock_print.call_count == 2
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("Hey FastAPI!",),
            ("Hello World",),
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 805 bytes
    - Click Count (0)
  10. tests/test_tutorial/test_python_types/test_tutorial009c.py

        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
    
        mock_print.assert_called_once_with("Hey FastAPI!")
    
        with pytest.raises(
            TypeError,
            match=re.escape("say_hi() missing 1 required positional argument: 'name'"),
        ):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 777 bytes
    - Click Count (0)
Back to Top