Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 394 for Settings (0.17 sec)

  1. docs_src/settings/tutorial001.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    
    settings = Settings()
    app = FastAPI()
    
    
    @app.get("/info")
    async def info():
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 419 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java

                            .total(pager.getAllRecordCount()).status(ApiResult.Status.OK).result());
        }
    
        // GET /api/admin/user/setting/{id}
        @Execute
        public JsonResponse<ApiResult> get$setting(final String id) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/relatedcontent/ApiAdminRelatedcontentAction.java

        //                                                                      ==============
    
        // GET /api/admin/relatedcontent/settings
        // POST /api/admin/relatedcontent/settings
        @Execute
        public JsonResponse<ApiResult> settings(final SearchBody body) {
            validateApi(body, messages -> {});
            final RelatedContentPager pager = copyBeanToNewBean(body, RelatedContentPager.class);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/03-gopls.yml

        attributes:
          label: "What did you expect to see?"
        validations:
          required: true
      - type: textarea
        id: editor-and-settings
        attributes:
          label: "Editor and settings"
          description: "Your editor and any settings you have configured (for example, your VSCode settings.json file)"
        validations:
          required: false
      - type: textarea
        id: logs
        attributes:
          label: "Logs"
    Others
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java

        private static final String NAME_PREFIX = "reqHeaderTest_";
        private static final String API_PATH = "/api/admin/reqheader";
        private static final String LIST_ENDPOINT_SUFFIX = "settings";
        private static final String ITEM_ENDPOINT_SUFFIX = "setting";
    
        private static final String KEY_PROPERTY = "name";
    
        @Override
        protected String getNamePrefix() {
            return NAME_PREFIX;
        }
    
        @Override
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/configure-swagger-ui.md

    ## JavaScript-only settings
    
    Swagger UI also allows other configurations to be **JavaScript-only** objects (for example, JavaScript functions).
    
    FastAPI also includes these JavaScript-only `presets` settings:
    
    ```JavaScript
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIBundle.SwaggerUIStandalonePreset
    ]
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

    import org.apache.maven.bridge.MavenRepositorySystem;
    import org.apache.maven.settings.Mirror;
    import org.apache.maven.settings.Proxy;
    import org.apache.maven.settings.Repository;
    import org.apache.maven.settings.Server;
    import org.apache.maven.settings.Settings;
    import org.apache.maven.settings.SettingsUtils;
    import org.apache.maven.toolchain.model.PersistedToolchains;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Jun 19 15:04:04 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java

                            .total(pager.getAllRecordCount()).status(ApiResult.Status.OK).result());
        }
    
        // GET /api/admin/relatedquery/setting/{id}
        @Execute
        public JsonResponse<ApiResult> get$setting(final String id) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. apache-maven/src/test/java/org/apache/maven/settings/GlobalSettingsTest.java

     * under the License.
     */
    package org.apache.maven.settings;
    
    import java.io.File;
    import java.io.InputStream;
    import java.nio.file.Files;
    
    import org.apache.maven.api.settings.InputSource;
    import org.apache.maven.settings.v4.SettingsStaxReader;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests that the global settings.xml shipped with the distribution is in good state.
     *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  10. docs_src/settings/app02/main.py

    from fastapi import Depends, FastAPI
    
    from .config import Settings
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return Settings()
    
    
    @app.get("/info")
    async def info(settings: Settings = Depends(get_settings)):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 406 bytes
    - Viewed (0)
Back to top