- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 125 for JSONResponse (0.21 sec)
-
src/main/java/org/codelibs/fess/app/web/api/admin/relatedcontent/ApiAdminRelatedcontentAction.java
import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; import org.codelibs.fess.es.config.exentity.RelatedContent; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; public class ApiAdminRelatedcontentAction extends FessApiAdminAction { private static final Logger logger = LogManager.getLogger(ApiAdminRelatedcontentAction.class);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 6.4K bytes - Viewed (0) -
docs/en/docs/advanced/additional-status-codes.md
By default, **FastAPI** will return the responses using a `JSONResponse`, putting the content you return from your *path operation* inside of that `JSONResponse`. It will use the default status code or the one you set in your *path operation*. ## Additional status codes If you want to return additional status codes apart from the main one, you can do that by returning a `Response` directly, like a `JSONResponse`, and set the additional status code directly.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:12:23 UTC 2024 - 1.9K bytes - Viewed (0) -
docs_src/response_cookies/tutorial001.py
from fastapi import FastAPI from fastapi.responses import JSONResponse app = FastAPI() @app.post("/cookie/") def create_cookie(): content = {"message": "Come to the dark side, we have cookies"} response = JSONResponse(content=content) response.set_cookie(key="fakesession", value="fake-cookie-session-value")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 344 bytes - Viewed (0) -
docs/em/docs/advanced/response-directly.md
โคด๏ธ, โ ๐, โซ๏ธ ๐ ๐ฎ ๐ ๐ป-๐ ๐ฝ (โ `dict`) ๐ `JSONResponse` ๐ ๐ โ๏ธ ๐จ ๐จ ๐ฉโ๐ป. โ๏ธ ๐ ๐ช ๐จ `JSONResponse` ๐ โช๏ธโก๏ธ ๐ *โก ๐ ๏ธ*. โซ๏ธ ๐ช โ , ๐ผ, ๐จ ๐ ๐ โ๏ธ ๐ช. ## ๐จ `Response` ๐, ๐ ๐ช ๐จ ๐ `Response` โ๏ธ ๐ ๐ง-๐ โซ๏ธ. /// tip `JSONResponse` โซ๏ธ ๐ง-๐ `Response`. /// & ๐โ ๐ ๐จ `Response`, **FastAPI** ๐ ๐ถโโ๏ธ โซ๏ธ ๐.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/webconfig/ApiAdminWebconfigAction.java
import org.codelibs.fess.es.config.exentity.WebConfig; import org.codelibs.fess.helper.PermissionHelper; import org.codelibs.fess.util.ComponentUtil; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; /** * @author Keiichi Watanabe */ public class ApiAdminWebconfigAction extends FessApiAdminAction {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/suggest/ApiAdminSuggestAction.java
import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; public class ApiAdminSuggestAction extends FessApiAdminAction { @Resource protected SuggestHelper suggestHelper; // GET /api/admin/suggest @Execute public JsonResponse<ApiResult> get$index() { final SuggestBody body = new SuggestBody();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/em/docs/advanced/additional-status-codes.md
# ๐ ๐ ๐ ๐ข, **FastAPI** ๐ ๐จ ๐จ โ๏ธ `JSONResponse`, ๐ฎ ๐ ๐ ๐จ โช๏ธโก๏ธ ๐ *โก ๐ ๏ธ* ๐ ๐ `JSONResponse`. โซ๏ธ ๐ โ๏ธ ๐ข ๐ ๐ โ๏ธ 1๏ธโฃ ๐ โ ๐ *โก ๐ ๏ธ*. ## ๐ ๐ ๐ ๐ฅ ๐ ๐ ๐จ ๐ ๐ ๐ โ๏ธ โช๏ธโก๏ธ ๐ 1๏ธโฃ, ๐ ๐ช ๐ ๐ฌ `Response` ๐, ๐ `JSONResponse`, & โ ๐ ๐ ๐ ๐. ๐ผ, โก๏ธ ๐ฌ ๐ ๐ ๐ โ๏ธ *โก ๐ ๏ธ* ๐ โ โน ๐ฌ, & ๐จ ๐บ๐ธ๐ ๐ ๐ 2๏ธโฃ0๏ธโฃ0๏ธโฃ "๐" ๐โ ๐. โ๏ธ ๐ ๐ โซ๏ธ ๐ซ ๐ ๐ฌ. & ๐โ ๐ฌ ๐ซ ๐ โญ, โซ๏ธ โ ๐ซ, & ๐จ ๐บ๐ธ๐ ๐ ๐ 2๏ธโฃ0๏ธโฃ1๏ธโฃ "โ".
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.7K bytes - Viewed (0) -
docs/de/docs/advanced/response-directly.md
Dann wรผrde es hinter den Kulissen diese JSON-kompatiblen Daten (z. B. ein `dict`) in eine `JSONResponse` einfรผgen, die zum Senden der Response an den Client verwendet wรผrde. Sie kรถnnen jedoch direkt eine `JSONResponse` von Ihren *Pfadoperationen* zurรผckgeben. Das kann beispielsweise nรผtzlich sein, um benutzerdefinierte Header oder Cookies zurรผckzugeben.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
docs/es/docs/advanced/response-directly.md
Luego, tras bastidores, pondrรญa esos datos compatibles con JSON (por ejemplo, un `dict`) dentro de una `JSONResponse` que se usarรญa para enviar la respuesta al cliente. Pero puedes devolver una `JSONResponse` directamente de tu *operaciรณn de path*. Esto puede ser รบtil, por ejemplo, para devolver cookies o headers personalizados. ## Devolver una `Response`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/joblog/ApiAdminJoblogAction.java
import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; import org.codelibs.fess.es.config.exentity.JobLog; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; /** * @author Keiichi Watanabe */ public class ApiAdminJoblogAction extends FessApiAdminAction {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 4.1K bytes - Viewed (0)