Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 236 for url_lines (0.14 seconds)

  1. docs/zh/docs/tutorial/bigger-applications.md

    因此,我们可以将其添加到 `APIRouter` 中,而不是将其添加到每个路径操作中。
    
    {* ../../docs_src/bigger_applications/app_an_py310/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    由于每个*路径操作*的路径都必须以 `/` 开头,例如:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...前缀不能以 `/` 作为结尾。
    
    因此,本例中的前缀为 `/items`。
    
    我们还可以添加一个 `tags` 列表和额外的 `responses` 列表,这些参数将应用于此路由器中包含的所有*路径操作*。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 19.5K bytes
    - Click Count (0)
  2. docs/uk/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Тоді вам потрібно лише змінити відповідні шляхи для копіювання файлу всередині `Dockerfile`:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 44.2K bytes
    - Click Count (0)
  3. docs/pt/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Então você só teria que alterar os caminhos correspondentes para copiar o arquivo dentro do `Dockerfile`:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  4. docs/es/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Entonces solo tendrías que cambiar las rutas correspondientes para copiar el archivo dentro del `Dockerfile`:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 30.8K bytes
    - Click Count (0)
  5. docs/de/docs/deployment/docker.md

    ```
    .
    ├── Dockerfile
    ├── main.py
    └── requirements.txt
    ```
    
    Dann müssten Sie nur noch die entsprechenden Pfade ändern, um die Datei im `Dockerfile` zu kopieren:
    
    ```{ .dockerfile .annotate hl_lines="10  13" }
    FROM python:3.14
    
    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    # (1)!
    COPY ./main.py /code/
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  6. src/main/resources/fess_config.properties

    response.field.content_title=content_title
    # Field name for content description in the response.
    response.field.content_description=content_description
    # Field name for URL link in the response.
    response.field.url_link=url_link
    # Field name for site path in the response.
    response.field.site_path=site_path
    # Maximum length of content title in the response.
    response.max.title.length=50
    # Maximum length of site path in the response.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 59.3K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/alternatives.md

    用法非常簡單。例如,發出一個 `GET` 請求,你會寫:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    相對地,FastAPI 的 API 路徑操作(path operation)可能像這樣:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    看看 `requests.get(...)` 與 `@app.get(...)` 的相似之處。
    
    /// check | 啟發 **FastAPI**
    
    * 擁有簡單直觀的 API。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 20K bytes
    - Click Count (0)
  8. docs/ko/docs/alternatives.md

    사용 방법은 매우 간단합니다. 예를 들어 `GET` 요청을 하려면 다음처럼 작성합니다:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    이에 대응하는 FastAPI의 API *경로 처리*는 다음과 같이 보일 수 있습니다:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    `requests.get(...)`와 `@app.get(...)`의 유사성을 확인해 보세요.
    
    /// check | **FastAPI**에 영감을 준 것
    
    * 단순하고 직관적인 API를 갖기.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 26.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/chat/ChatClient.java

                source.setGoUrl(buildGoUrl(contextPath, source.getDocId(), queryId, requestedTime, i));
                assistantMessage.addSource(source);
            }
        }
    
        /**
         * Populates the url_link field in the document map if not already present.
         *
         * @param doc the document map
         */
        protected void populateUrlLink(final Map<String, Object> doc) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py310/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    各 *path operation* のパスは次のように `/` で始める必要があるため:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...prefix の末尾に `/` を含めてはいけません。
    
    この場合の prefix は `/items` です。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 22.8K bytes
    - Click Count (0)
Back to Top