- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 562 for form (0.01 sec)
-
docs/en/docs/tutorial/request-form-models.md
/// ## Pydantic Models for Forms { #pydantic-models-for-forms } You just need to declare a **Pydantic model** with the fields you want to receive as **form fields**, and then declare the parameter as `Form`: {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *} **FastAPI** will **extract** the data for **each field** from the **form data** in the request and give you the Pydantic model you defined.Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms.md
/// tip To declare form bodies, you need to use `Form` explicitly, because without it the parameters would be interpreted as query parameters or body (JSON) parameters. /// ## About "Form Fields" { #about-form-fields } The way HTML forms (`<form></form>`) sends the data to the server normally uses a "special" encoding for that data, it's different from JSON. **FastAPI** will make sure to read that data from the right place instead of JSON.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.7K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms-and-files.md
```console $ pip install python-multipart ``` /// ## Import `File` and `Form` { #import-file-and-form } {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *} ## Define `File` and `Form` parameters { #define-file-and-form-parameters } Create file and form parameters the same way you would for `Body` or `Query`: {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[10:12] *}Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java
*/ @Execute @Secured({ ROLE }) public HtmlResponse edit(final EditForm form) { validate(form, messages -> {}, () -> asListHtml(form.dictId)); stopwordsService.getStopwordsItem(form.dictId, form.id).ifPresent(entity -> { form.input = entity.getInputValue(); }).orElse(() -> {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 20.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java
* Create a new data config. * @param form The create form. * @return The HTML response. */ @Execute @Secured({ ROLE }) public HtmlResponse create(final CreateForm form) { verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); verifyToken(this::asEditHtml); getDataConfig(form).ifPresent(entity -> { try {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 19.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java
validate(form, messages -> {}, () -> asListHtml(form.dictId)); protwordsService.getProtwordsItem(form.dictId, form.id).ifPresent(entity -> { form.input = entity.getInputValue(); }).orElse(() -> { throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, form.getDisplayId()), () -> asListHtml(form.dictId)); });
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 20.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/group/AdminGroupAction.java
/** * Gets a group entity from the form with attributes. * * @param form the create form * @return optional group entity */ public static OptionalEntity<Group> getGroup(final CreateForm form) { return getEntity(form).map(entity -> { copyMapToBean(form.attributes, entity, op -> op.exclude(Constants.COMMON_CONVERSION_RULE));Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/webconfig/AdminWebconfigAction.java
form.name = null; }); form.crudMode = CrudMode.CREATE; }); }); } /** * Displays the form for editing an existing web crawler configuration. * * @param form the edit form containing web config ID * @return HTML response for the web config edit form */ @ExecuteRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 21K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/fileconfig/AdminFileconfigAction.java
* * @param form the create form * @return HTML response after creation */ @Execute @Secured({ ROLE }) public HtmlResponse create(final CreateForm form) { verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); verifyToken(this::asEditHtml); getFileConfig(form).ifPresent(entity -> { try {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 20.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/go/GoAction.java
clickLog.setQueryRequestedAt(DfTypeUtil.toLocalDateTime(Long.parseLong(form.rt))); clickLog.setUserSessionId(userSessionId); clickLog.setDocId(form.docId); clickLog.setQueryId(form.queryId); if (form.order != null) { clickLog.setOrder(form.order); } searchLogHelper.addClickLog(clickLog); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 8.1K bytes - Viewed (0)