Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 1,062 for forms (0.03 sec)

  1. docs_src/request_form_models/tutorial001_an_py39.py

    from typing import Annotated
    
    from fastapi import FastAPI, Form
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class FormData(BaseModel):
        username: str
        password: str
    
    
    @app.post("/login/")
    async def login(data: Annotated[FormData, Form()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 268 bytes
    - Viewed (0)
  2. docs_src/request_form_models/tutorial002_pv1_an.py

    from fastapi import FastAPI, Form
    from pydantic import BaseModel
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    class FormData(BaseModel):
        username: str
        password: str
    
        class Config:
            extra = "forbid"
    
    
    @app.post("/login/")
    async def login(data: Annotated[FormData, Form()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 17:31:18 UTC 2024
    - 322 bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/request-files.md

    ///
    
    ## 什么是 「表单数据」
    
    与 JSON 不同,HTML 表单(`<form></form>`)向服务器发送数据通常使用「特殊」的编码。
    
    **FastAPI** 要确保从正确的位置读取数据,而不是读取 JSON。
    
    /// note | "技术细节"
    
    不包含文件时,表单数据一般用 `application/x-www-form-urlencoded`「媒体类型」编码。
    
    但表单包含文件时,编码为 `multipart/form-data`。使用了 `File`,**FastAPI** 就知道要从请求体的正确位置获取文件。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. docs/pt/docs/history-design-future.md

    Dessa forma eu pude encontrar a melhor maneira de reduzir duplicação de código o máximo possível, ter completação de texto em todos os lugares, conferência de tipos e erros etc.
    
    Tudo de uma forma que oferecesse a melhor experiência de desenvolvimento para todos os desenvolvedores.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/main/webapp/css/admin/bootstrap.min.css

    x;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-al...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 158.5K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/dict/protwords/admin_dict_protwords_upload.jsp

                                        <la:errors/>
                                    </div>
                                    <div class="form-group row">
                                        <label for="protwordsFile" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.dict_protwords_file"/></label>
                                        <div class="col-sm-9">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/admin/dict/synonym/admin_dict_synonym_upload.jsp

                                        <la:errors/>
                                    </div>
                                    <div class="form-group row">
                                        <label for="synonymFile" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.dict_synonym_file"/></label>
                                        <div class="col-sm-9">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/view/admin/upgrade/admin_upgrade.jsp

    							<div class="card-body">
    								<div class="form-group row">
    									<label for="targetVersion" class="col-sm-3 text-sm-right col-form-label"><la:message
    											key="labels.target_version"
    										/></label>
    									<div class="col-sm-9">
    										<la:errors property="targetVersion" />
    										<la:select styleId="targetVersion" property="targetVersion" styleClass="form-control">
    											<la:option value="13.0">13.0</la:option>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Sep 22 07:32:24 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial003_an_py39.py

    
    @needs_py39
    def test_get_root(app: FastAPI):
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
        assert b"<form" in response.content
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

            form.dictId = dictId;
            validateApi(form, messages -> {});
            final StopwordsFile file = stopwordsService.getStopwordsFile(form.dictId).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL));
                return null;
            });
            try (InputStream inputStream = form.stopwordsFile.getInputStream()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top