Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for APIRouter (0.05 sec)

  1. tests/test_generate_unique_id_function.py

                }
            },
        }
    
    
    def test_subrouter_top_level_include_overrides_generate_unique_id():
        app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
        router = APIRouter()
        sub_router = APIRouter(generate_unique_id_function=custom_generate_unique_id2)
    
        @app.post("/", response_model=List[Item], responses={404: {"model": List[Message]}})
        def post_root(item1: Item, item2: Item):
    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/test-utils_test.go

    		return "", nil, err
    	}
    	// Register the API end points with Erasure object layer.
    	// Registering only the GetObject handler.
    	apiRouter := initTestAPIEndPoints(obj, endpoints)
    	f := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		r.RequestURI = r.URL.RequestURI()
    		apiRouter.ServeHTTP(w, r)
    	})
    	return bucketName, f, nil
    }
    
    // prepare test backend.
    // create FS/Erasure/ErasureSet backend.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top