Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for triage (0.17 sec)

  1. tests/test_operations_signatures.py

    import inspect
    
    from fastapi import APIRouter, FastAPI
    
    method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"]
    
    
    def test_signatures_consistency():
        base_sig = inspect.signature(APIRouter.get)
        for method_name in method_names:
            router_method = getattr(APIRouter, method_name)
            app_method = getattr(FastAPI, method_name)
            router_sig = inspect.signature(router_method)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon May 27 12:08:13 GMT 2019
    - 934 bytes
    - Viewed (0)
  2. tensorflow/api_template.__init__.py

    setattr(_current_module, "optimizers", _optimizers)
    setattr(_current_module, "initializers", _initializers)
    
    
    # Do an eager load for Keras' code so that any function/method that needs to
    # happen at load time will trigger, eg registration of optimizers in the
    # SavedModel registry.
    # See b/196254385 for more details.
    try:
      if _tf_uses_legacy_keras:
        importlib.import_module("tf_keras.src.optimizers")
      else:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  3. tests/test_extra_routes.py

                                    }
                                },
                            },
                        },
                        "summary": "Trace Item",
                        "operationId": "trace_item_items__item_id__trace",
                        "parameters": [
                            {
                                "required": True,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 13.7K bytes
    - Viewed (0)
  4. fastapi/openapi/models.py

        post: Optional[Operation] = None
        delete: Optional[Operation] = None
        options: Optional[Operation] = None
        head: Optional[Operation] = None
        patch: Optional[Operation] = None
        trace: Optional[Operation] = None
        servers: Optional[List[Server]] = None
        parameters: Optional[List[Union[Parameter, Reference]]] = None
    
    
    class SecuritySchemeType(Enum):
        apiKey = "apiKey"
        http = "http"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. fastapi/applications.py

            """
            Add a *path operation* using an HTTP TRACE operation.
    
            ## Example
    
            ```python
            from fastapi import FastAPI
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def trace_item(item_id: str):
                return None
            ```
            """
            return self.router.trace(
                path,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  6. fastapi/routing.py

                description: str | None = None
    
            app = FastAPI()
            router = APIRouter()
    
            @router.trace("/items/{item_id}")
            def trace_item(item_id: str):
                return None
    
            app.include_router(router)
            ```
            """
            return self.api_route(
                path=path,
                response_model=response_model,
                status_code=status_code,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top