Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 2,056 for App (0.02 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/role/ApiAdminRoleAction.java

     */
    package org.codelibs.fess.app.web.api.admin.role;
    
    import static org.codelibs.fess.app.web.admin.role.AdminRoleAction.getRole;
    
    import java.util.List;
    import java.util.stream.Collectors;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.fess.app.pager.RolePager;
    import org.codelibs.fess.app.service.RoleService;
    import org.codelibs.fess.app.web.CrudMode;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. tests/test_route_scope.py

    from fastapi.routing import APIRoute, APIWebSocketRoute
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/users/{user_id}")
    async def get_user(user_id: str, request: Request):
        route: APIRoute = request.scope["route"]
        return {"user_id": user_id, "path": route.path}
    
    
    @app.websocket("/items/{item_id}")
    async def websocket_item(item_id: str, websocket: WebSocket):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Feb 08 10:23:07 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/docker.md

    WORKDIR /code
    
    COPY ./requirements.txt /code/requirements.txt
    
    RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
    
    COPY ./app /code/app
    
    CMD ["fastapi", "run", "app/main.py", "--port", "80"]
    
    # If running behind a proxy like Nginx or Traefik add --proxy-headers
    # CMD ["fastapi", "run", "app/main.py", "--port", "80", "--proxy-headers"]
    ```
    
    </details>
    
    ## What is a Container
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 18 16:09:57 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. tests/test_security_openid_connect_optional.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(oid)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. docs/ja/docs/index.md

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: bool = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. .github/actions/people/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 14:12:28 UTC 2023
    - 156 bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/webconfig/AdminWebconfigAction.java

    import org.codelibs.fess.annotation.Secured;
    import org.codelibs.fess.app.pager.WebConfigPager;
    import org.codelibs.fess.app.service.LabelTypeService;
    import org.codelibs.fess.app.service.RoleTypeService;
    import org.codelibs.fess.app.service.ScheduledJobService;
    import org.codelibs.fess.app.service.WebConfigService;
    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.app.web.base.FessAdminAction;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/pathmap/CreateForm.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.app.web.admin.pathmap;
    
    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.util.ComponentUtil;
    import org.lastaflute.web.validation.Required;
    import org.lastaflute.web.validation.theme.conversion.ValidateTypeFailure;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_schema_extra_example/test_tutorial001_py310_pv1.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.schema_extra_example.tutorial001_py310_pv1 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    @needs_pydanticv1
    def test_post_body_example(client: TestClient):
        response = client.put(
            "/items/5",
            json={
                "name": "Foo",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_params/test_tutorial003_an.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from docs_src.header_params.tutorial003_an import app
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            # TODO: fix this, is it a bug?
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top