Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 125 for JSONResponse (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. docs/em/docs/advanced/additional-status-codes.md

    # ๐ŸŒ– ๐Ÿ‘” ๐Ÿ“Ÿ
    
    ๐Ÿ”ข, **FastAPI** ๐Ÿ”œ ๐Ÿ“จ ๐Ÿ“จ โš™๏ธ `JSONResponse`, ๐Ÿšฎ ๐ŸŽš ๐Ÿ‘† ๐Ÿ“จ โšช๏ธโžก๏ธ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ* ๐Ÿ”˜ ๐Ÿ‘ˆ `JSONResponse`.
    
    โšซ๏ธ ๐Ÿ”œ โš™๏ธ ๐Ÿ”ข ๐Ÿ‘” ๐Ÿ“Ÿ โš–๏ธ 1๏ธโƒฃ ๐Ÿ‘† โš’ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*.
    
    ## ๐ŸŒ– ๐Ÿ‘” ๐Ÿ“Ÿ
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š ๐Ÿ“จ ๐ŸŒ– ๐Ÿ‘” ๐Ÿ“Ÿ โ†–๏ธ โšช๏ธโžก๏ธ ๐Ÿ‘‘ 1๏ธโƒฃ, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ‘ˆ ๐Ÿ›ฌ `Response` ๐Ÿ”—, ๐Ÿ’– `JSONResponse`, &amp; โš’ ๐ŸŒ– ๐Ÿ‘” ๐Ÿ“Ÿ ๐Ÿ”—.
    
    ๐Ÿ–ผ, โžก๏ธ ๐Ÿ’ฌ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’š โœ”๏ธ *โžก ๐Ÿ› ๏ธ* ๐Ÿ‘ˆ โœ” โ„น ๐Ÿฌ, &amp; ๐Ÿ“จ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘” ๐Ÿ“Ÿ 2๏ธโƒฃ0๏ธโƒฃ0๏ธโƒฃ "๐Ÿ‘Œ" ๐Ÿ•โ” ๐Ÿ†.
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’š โšซ๏ธ ๐Ÿšซ ๐Ÿ†• ๐Ÿฌ. &amp; ๐Ÿ•โ” ๐Ÿฌ ๐Ÿšซ ๐Ÿ”€ โญ, โšซ๏ธ โœ ๐Ÿ‘ซ, &amp; ๐Ÿ“จ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘” ๐Ÿ“Ÿ 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)
  8. 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)
  9. 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)
  10. 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)
Back to top