Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for apiNote (0.08 sec)

  1. tests/test_generate_unique_id_function.py

    from fastapi import APIRouter, FastAPI
    from fastapi.routing import APIRoute
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    def custom_generate_unique_id(route: APIRoute):
        return f"foo_{route.name}"
    
    
    def custom_generate_unique_id2(route: APIRoute):
        return f"bar_{route.name}"
    
    
    def custom_generate_unique_id3(route: APIRoute):
        return f"baz_{route.name}"
    
    
    class Item(BaseModel):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 13 15:10:26 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    		// any underlying errors if possible depending on
    		// their internal error types.
    		switch e := err.(type) {
    		case kms.Error:
    			apiErr = APIError{
    				Code:           e.APICode,
    				Description:    e.Err,
    				HTTPStatusCode: e.Code,
    			}
    		case batchReplicationJobError:
    			apiErr = APIError{
    				Description:    e.Description,
    				Code:           e.Code,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top