Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 882 for pos3 (0.04 sec)

  1. docs/zh/docs/advanced/openapi-callbacks.md

    ## 使用回调的应用
    
    示例如下。
    
    假设要开发一个创建发票的应用。
    
    发票包括 `id`、`title`(可选)、`customer`、`total` 等属性。
    
    API 的用户 (外部开发者)要在您的 API 内使用 POST 请求创建一条发票记录。
    
    (假设)您的 API 将:
    
    * 把发票发送至外部开发者的消费者
    * 归集现金
    * 把通知发送至 API 的用户(外部开发者)
        * 通过(从您的 API)发送 POST 请求至外部 API (即**回调**)来完成
    
    ## 常规 **FastAPI** 应用
    
    添加回调前,首先看下常规 API 应用是什么样子。
    
    常规 API 应用包含接收 `Invoice` 请求体的*路径操作*,还有包含回调 URL 的查询参数 `callback_url`。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. licenses/github.com/klauspost/compress/s2/cmd/internal/readahead/LICENSE

    furnished to do so, subject to...
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 06 23:19:43 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/Constants.java

    /**
     * @author shinsuke
     *
     */
    public final class Constants {
        public static final String GET_METHOD = "GET";
    
        public static final String HEAD_METHOD = "HEAD";
    
        public static final String POST_METHOD = "POST";
    
        public static final int OK_STATUS = 0;
    
        public static final int NOT_MODIFIED_STATUS = 304;
    
        public static final int OK_STATUS_CODE = 200;
    
        public static final int NOT_MODIFIED_STATUS_CODE = 304;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. docs_src/dataclasses/tutorial003.py

    class Item:
        name: str
        description: Union[str, None] = None
    
    
    @dataclass
    class Author:
        name: str
        items: List[Item] = field(default_factory=list)  # (3)
    
    
    app = FastAPI()
    
    
    @app.post("/authors/{author_id}/items/", response_model=Author)  # (4)
    async def create_author_items(author_id: str, items: List[Item]):  # (5)
        return {"name": author_id, "items": items}  # (6)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/CreateForm.java

        @Required
        @Size(max = 1000)
        public String segmentation;
    
        @Required
        @Size(max = 1000)
        public String reading;
    
        @Required
        @Size(max = 1000)
        public String pos;
    
        public void initialize() {
            crudMode = CrudMode.CREATE;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/NtlmMessage.java

            return offset + 4;
        }
    
    
        static int writeSecurityBufferContent ( byte[] dest, int pos, int off, byte[] src ) {
            writeULong(dest, off, pos);
            if ( src != null && src.length > 0 ) {
                System.arraycopy(src, 0, dest, pos, src.length);
                return src.length;
            }
            return 0;
        }
    
    
        static String getOEMEncoding () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                // server is set through URL, however it's still in the name
                int pos = 0;
                if ( context.getServer() == null ) {
                    pos = 1;
                }
    
                // first remaining path element would be share
                if ( nameParts.length > pos ) {
                    this.share = nameParts[ pos++ ];
                }
    
                // all other remaining path elements are actual path
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
  8. docs_src/security/tutorial003_an.py

        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
        user_dict = fake_users_db.get(form_data.username)
        if not user_dict:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. docs_src/security/tutorial003_an_py39.py

        current_user: Annotated[User, Depends(get_current_user)],
    ):
        if current_user.disabled:
            raise HTTPException(status_code=400, detail="Inactive user")
        return current_user
    
    
    @app.post("/token")
    async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]):
        user_dict = fake_users_db.get(form_data.username)
        if not user_dict:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. scripts/playwright/request_form_models/image01.py

        # Update the viewport manually
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="POST /login/ Login").click()
        page.get_by_role("button", name="Try it out").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/request-form-models/image01.png")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:14:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top