Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,518 for Portal (0.22 sec)

  1. docs_src/separate_openapi_schemas/tutorial001.py

    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 489 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial008b_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 775 bytes
    - Viewed (0)
  3. docs_src/path_operation_configuration/tutorial002b.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    class Tags(Enum):
        items = "items"
        users = "users"
    
    
    @app.get("/items/", tags=[Tags.items])
    async def get_items():
        return ["Portal gun", "Plumbus"]
    
    
    @app.get("/users/", tags=[Tags.users])
    async def read_users():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jan 23 17:43:04 UTC 2022
    - 323 bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/BaseRepositoryFactory.java

     */
    public interface BaseRepositoryFactory {
    
        String PLUGIN_PORTAL_DEFAULT_URL = "https://plugins.gradle.org/m2";
        String PLUGIN_PORTAL_OVERRIDE_URL_PROPERTY = "org.gradle.internal.plugins.portal.url.override";
    
        FlatDirectoryArtifactRepository createFlatDirRepository();
    
        ArtifactRepository createGradlePluginPortal();
    
        MavenArtifactRepository createMavenLocalRepository();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. docs_src/response_model/tutorial001_01.py

        tags: List[str] = []
    
    
    @app.post("/items/")
    async def create_item(item: Item) -> Item:
        return item
    
    
    @app.get("/items/")
    async def read_items() -> List[Item]:
        return [
            Item(name="Portal Gun", price=42.0),
            Item(name="Plumbus", price=32.0),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 513 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_dependencies/test_tutorial008b_an_py39.py

        assert response.json() == {"detail": "Owner error: Rick"}
    
    
    @needs_py39
    def test_get_item(client: TestClient):
        response = client.get("/items/portal-gun")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 918 bytes
    - Viewed (0)
  7. pkg/volume/util/device_util_linux.go

    					continue
    				}
    
    				// Add entries to the map for both the current and persistent portals
    				// pointing to the SCSI host for those connections
    				// JoinHostPort will add `[]` around IPv6 addresses.
    				portal := net.JoinHostPort(strings.TrimSpace(string(addr)), strings.TrimSpace(string(port)))
    				portalHostMap[portal] = hostNumber
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  8. docs_src/separate_openapi_schemas/tutorial001_py310.py

    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 451 bytes
    - Viewed (0)
  9. docs_src/separate_openapi_schemas/tutorial002_py310.py

    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 486 bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl-tooling-builders/src/testFixtures/groovy/org/gradle/kotlin/dsl/tooling/fixtures/KotlinScriptModelParameters.groovy

            def correlationId = newCorrelationId()
    
            def arguments =
                ["-P${KotlinDslModelsParameters.CORRELATION_ID_GRADLE_PROPERTY_NAME}=${correlationId}".toString(),
                 "-Dorg.gradle.internal.plugins.portal.url.override=${gradlePluginRepositoryMirrorUrl()}".toString()]
    
            if (!scripts.toList().isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 21 09:28:30 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top