Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 1,928 for post (0.03 sec)

  1. docs_src/path_operation_advanced_configuration/tutorial006.py

        return {
            "size": len(raw_body),
            "content": {
                "name": "Maaaagic",
                "price": 42,
                "description": "Just kiddin', no magic here. โœจ",
            },
        }
    
    
    @app.post(
        "/items/",
        openapi_extra={
            "requestBody": {
                "content": {
                    "application/json": {
                        "schema": {
                            "required": ["name", "price"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jul 29 20:01:13 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial001_py39.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: list[str] = []
    
    
    @app.post("/items/", response_model=Item)
    async def create_item(item: Item) -> Any:
        return item
    
    
    @app.get("/items/", response_model=list[Item])
    async def read_items() -> Any:
        return [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 556 bytes
    - Viewed (0)
  3. docs/sts/tls.md

    ```
    export MINIO_IDENTITY_TLS_ENABLE=on
    ```
    
    ## Example
    
    MinIO exposes a custom S3 STS API endpoint as `Action=AssumeRoleWithCertificate`. A client has to send an HTTP `POST` request to `https://<host>:<port>?Action=AssumeRoleWithCertificate&Version=2011-06-15`. Since the authentication and authorization happens via X.509 certificates the client has to send the request over **TLS** and has to provide
    a client certificate.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 6K bytes
    - Viewed (1)
  4. docs/sts/client_grants/__init__.py

                headers['authorization'] = urllib3.make_headers(
                    basic_auth='%s:%s' % (self.cid, self.csec))['authorization']
    
                response = self._http.urlopen('POST', self.idp_ep,
                                              body="grant_type=client_credentials",
                                              headers=headers,
                                              preload_content=True,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

      public void run() throws Exception {
        final PipeBody pipeBody = new PipeBody();
    
        Request request = new Request.Builder()
            .url("https://api.github.com/markdown/raw")
            .post(pipeBody)
            .build();
    
        streamPrimesToSinkAsynchronously(pipeBody.sink());
    
        try (Response response = client.newCall(request).execute()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  6. docs_src/body_nested_models/tutorial007.py

        tags: Set[str] = set()
        images: Union[List[Image], None] = None
    
    
    class Offer(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        items: List[Item]
    
    
    @app.post("/offers/")
    async def create_offer(offer: Offer):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 581 bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/request-forms.md

    โœ‹๏ธ ๐Ÿ•โ” ๐Ÿ“จ ๐Ÿ”Œ ๐Ÿ“, โšซ๏ธ ๐Ÿ—œ `multipart/form-data`. ๐Ÿ‘† ๐Ÿ”œ โœ ๐Ÿ”ƒ ๐Ÿšš ๐Ÿ“ โญ ๐Ÿ“ƒ.
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š โœ ๐ŸŒ– ๐Ÿ”ƒ ๐Ÿ‘‰ ๐Ÿ”ข &amp; ๐Ÿ“จ ๐Ÿ‘, ๐Ÿ‘ณ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">๐Ÿ‡</abbr> ๐Ÿ•ธ ๐Ÿฉบ <code>POST</code></a>.
    
    ///
    
    /// warning
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/response-status-code.md

    # ๅ“ๅบ”็Šถๆ€็ 
    
    ไธŽๆŒ‡ๅฎšๅ“ๅบ”ๆจกๅž‹็š„ๆ–นๅผ็›ธๅŒ๏ผŒๅœจไปฅไธ‹ไปปๆ„*่ทฏๅพ„ๆ“ไฝœ*ไธญ๏ผŒๅฏไปฅไฝฟ็”จ `status_code` ๅ‚ๆ•ฐๅฃฐๆ˜Ž็”จไบŽๅ“ๅบ”็š„ HTTP ็Šถๆ€็ ๏ผš
    
    * `@app.get()`
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    * ็ญ‰โ€ฆโ€ฆ
    
    ```Python hl_lines="6"
    {!../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    /// note | "็ฌ”่ฎฐ"
    
    ๆณจๆ„๏ผŒ`status_code` ๆ˜ฏ๏ผˆ`get`ใ€`post` ็ญ‰๏ผ‰**่ฃ…้ฅฐๅ™จ**ๆ–นๆณ•ไธญ็š„ๅ‚ๆ•ฐใ€‚ไธŽไน‹ๅ‰็š„ๅ‚ๆ•ฐๅ’Œ่ฏทๆฑ‚ไฝ“ไธๅŒ๏ผŒไธๆ˜ฏ*่ทฏๅพ„ๆ“ไฝœๅ‡ฝๆ•ฐ*็š„ๅ‚ๆ•ฐใ€‚
    
    ///
    
    `status_code` ๅ‚ๆ•ฐๆŽฅๆ”ถ่กจ็คบ HTTP ็Šถๆ€็ ็š„ๆ•ฐๅญ—ใ€‚
    
    /// info | "่ฏดๆ˜Ž"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. docs_src/background_tasks/tutorial002_an_py39.py

    
    def get_query(background_tasks: BackgroundTasks, q: Union[str, None] = None):
        if q:
            message = f"found query: {q}\n"
            background_tasks.add_task(write_log, message)
        return q
    
    
    @app.post("/send-notification/{email}")
    async def send_notification(
        email: str, background_tasks: BackgroundTasks, q: Annotated[str, Depends(get_query)]
    ):
        message = f"message to {email}\n"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 696 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/webconfig/ApiAdminWebconfigAction.java

                return null;
            });
    
            return asJson(new ApiUpdateResponse().id(webConfig.getId()).created(true).status(Status.OK).result());
        }
    
        // POST /api/admin/webconfig/setting
        @Execute
        public JsonResponse<ApiResult> post$setting(final EditBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.EDIT;
            final WebConfig webConfig = getWebConfig(body).map(entity -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top