Search Options

Results per page
Sort
Preferred Languages
Advance

Results 901 - 910 of 3,993 for NAME (0.02 sec)

  1. tests/test_tutorial/test_header_param_models/test_tutorial002.py

                                {
                                    "name": "host",
                                    "in": "header",
                                    "required": True,
                                    "schema": {"type": "string", "title": "Host"},
                                },
                                {
                                    "name": "save_data",
                                    "in": "header",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

            "/items?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200
        assert response.json() == {
            "plumbus": {"name": "Plumbus"},
            "gun": {"name": "Portal Gun"},
        }
    
    
    @needs_py39
    def test_items_with_no_token_jessica(client: TestClient):
        response = client.get("/items", headers={"X-Token": "fake-super-secret-token"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. docs_src/generate_clients/tutorial001_py39.py

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class ResponseMessage(BaseModel):
        message: str
    
    
    @app.post("/items/", response_model=ResponseMessage)
    async def create_item(item: Item):
        return {"message": "item received"}
    
    
    @app.get("/items/", response_model=list[Item])
    async def get_items():
        return [
            {"name": "Plumbus", "price": 3},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Mar 04 22:02:18 UTC 2022
    - 494 bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/testdata/deployment/hello-with-proxyconfig-anno.yaml

    kind: Deployment
    metadata:
      name: hello
    spec:
      replicas: 7
      selector:
        matchLabels:
          app: hello
          tier: backend
          track: stable
      template:
        metadata:
          annotations:
            proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'
          labels:
            app: hello
            tier: backend
            track: stable
        spec:
          containers:
            - name: hello
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 556 bytes
    - Viewed (0)
  5. tests/test_validate_response_recursive/app_pv1.py

    @app.get("/items/recursive", response_model=RecursiveItem)
    def get_recursive():
        return {"name": "item", "sub_items": [{"name": "subitem", "sub_items": []}]}
    
    
    @app.get("/items/recursive-submodel", response_model=RecursiveItemViaSubmodel)
    def get_recursive_submodel():
        return {
            "name": "item",
            "sub_items1": [
                {
                    "name": "subitem",
                    "sub_items2": [
                        {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/resources/inheritance-repo/t00/maven/poms/p3-1.0.pom

        <groupId>maven</groupId>
        <version>1.0</version>
      </parent>
      <modelVersion>4.0.0</modelVersion>
      <groupId>maven</groupId>
      <artifactId>p3</artifactId>
      <packaging>pom</packaging>
      <name>p3</name>
      <version>1.0</version>
      <inceptionYear>2000</inceptionYear>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 335 bytes
    - Viewed (0)
  7. cmd/bucket-object-lock.go

    			apiErr := isPutRetentionAllowed(oi.Bucket, oi.Name,
    				days, objRetention.RetainUntilDate.Time,
    				objRetention.Mode, byPassSet, r, cred,
    				owner)
    			if apiErr == ErrAccessDenied {
    				return errAuthentication
    			}
    			return nil
    		}
    
    		switch ret.Mode {
    		case objectlock.RetGovernance:
    			govPerm := isPutRetentionAllowed(oi.Bucket, oi.Name, days,
    				objRetention.RetainUntilDate.Time, objRetention.Mode,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. cni/test/testdata/expected/minikube_cni.conflist.expected

      "name": "k8s-pod-network",
      "plugins": [
        {
          "addIf": "true",
          "bridge": "mybridge",
          "ipMasq": true,
          "ipam": {
            "gateway": "10.1.0.1",
            "routes": [
              {
                "dst": "0.0.0.0/0"
              }
            ],
            "subnet": "10.1.0.0/16",
            "type": "host-local"
          },
          "isGateway": true,
          "mtu": 1460,
          "name": "rkt.kubernetes.io",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 733 bytes
    - Viewed (0)
  9. docs_src/app_testing/tutorial003.py

    async def startup_event():
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
        with TestClient(app) as client:
            response = client.get("/items/foo")
            assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 528 bytes
    - Viewed (0)
  10. docs_src/separate_openapi_schemas/tutorial001_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: Optional[str] = None
    
    
    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",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 483 bytes
    - Viewed (0)
Back to top