Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 3,434 for getE (0.03 sec)

  1. tests/test_additional_responses_router.py

    
    app = FastAPI()
    router = APIRouter()
    
    
    @router.get("/a", responses={501: {"description": "Error 1"}})
    async def a():
        return "a"
    
    
    @router.get(
        "/b",
        responses={
            502: {"description": "Error 2"},
            "4XX": {"description": "Error with range, upper"},
        },
    )
    async def b():
        return "b"
    
    
    @router.get(
        "/c",
        responses={
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. tests/test_response_model_as_return_annotation.py

        price: float
    
    
    app = FastAPI()
    
    
    @app.get("/no_response_model-no_annotation-return_model")
    def no_response_model_no_annotation_return_model():
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-no_annotation-return_dict")
    def no_response_model_no_annotation_return_dict():
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model-no_annotation-return_same_model", response_model=User)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 14 09:49:57 UTC 2023
    - 47.7K bytes
    - Viewed (0)
  3. tests/test_custom_route_class.py

    router_a = APIRouter(route_class=APIRouteA)
    router_b = APIRouter(route_class=APIRouteB)
    router_c = APIRouter(route_class=APIRouteC)
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "A"}
    
    
    @router_b.get("/")
    def get_b():
        return {"msg": "B"}
    
    
    @router_c.get("/")
    def get_c():
        return {"msg": "C"}
    
    
    router_b.include_router(router=router_c, prefix="/c")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelData.java

        }
    
        public Source getSource() {
            return source;
        }
    
        /**
         * Gets the model being wrapped.
         *
         * @return The model or {@code null} if not set.
         */
        public Model getModel() {
            return model;
        }
    
        /**
         * Gets the effective group identifier of the model.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. tests/test_default_response_class_router.py

    router_b_a_c_override = APIRouter()  # Overrides default class again
    
    
    @app.get("/")
    def get_root():
        return {"msg": "Hello World"}
    
    
    @app.get("/override", response_class=PlainTextResponse)
    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "Hello A"}
    
    
    @router_a.get("/override", response_class=PlainTextResponse)
    def get_a_path_override():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5K bytes
    - Viewed (0)
  6. tests/test_response_model_include_exclude.py

        ref2: Model2
    
    
    app = FastAPI()
    
    
    @app.get(
        "/simple_include",
        response_model=Model2,
        response_model_include={"baz": ..., "ref": {"foo"}},
    )
    def simple_include():
        return Model2(
            ref=Model1(foo="simple_include model foo", bar="simple_include model bar"),
            baz="simple_include model2 baz",
        )
    
    
    @app.get(
        "/simple_include_dict",
        response_model=Model2,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

                    final String scheme = paramMap.get(CRAWLER_FILE_AUTH + "." + fileAuthName + ".scheme");
                    if (Constants.SAMBA.equals(scheme)) {
                        final String domain = paramMap.get(CRAWLER_FILE_AUTH + "." + fileAuthName + ".domain");
                        final String hostname = paramMap.get(CRAWLER_FILE_AUTH + "." + fileAuthName + ".host");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        // next map.get()
        when(backingMap.get(KEY)).thenReturn(existingZero);
        // since get returned zero, try a replace; that fails due to a simulated race
        when(backingMap.replace(eq(KEY), eq(existingZero), isA(AtomicInteger.class))).thenReturn(false);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(existing);
    
        // another map.get()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  9. cmd/signature-v4.go

    		if !defaultSigParams.Contains(k) {
    			query[k] = v
    		}
    	}
    
    	// Get the encoded query.
    	encodedQuery := query.Encode()
    
    	// Verify if date query is same.
    	if req.Form.Get(xhttp.AmzDate) != query.Get(xhttp.AmzDate) {
    		return ErrSignatureDoesNotMatch
    	}
    	// Verify if expires query is same.
    	if req.Form.Get(xhttp.AmzExpires) != query.Get(xhttp.AmzExpires) {
    		return ErrSignatureDoesNotMatch
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  10. tests/test_starlette_urlconvertors.py

    app = FastAPI()
    
    
    @app.get("/int/{param:int}")
    def int_convertor(param: int = Path()):
        return {"int": param}
    
    
    @app.get("/float/{param:float}")
    def float_convertor(param: float = Path()):
        return {"float": param}
    
    
    @app.get("/path/{param:path}")
    def path_convertor(param: str = Path()):
        return {"path": param}
    
    
    @app.get("/query/")
    def query_convertor(param: str = Query()):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 27 14:46:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top