@@ -35,7 +35,7 @@ pub mod testbed;
3535 testbed:: productizers:: person:: job_applicant_profile:: get_job_applicant_profile,
3636 testbed:: productizers:: person:: job_applicant_profile:: write_job_applicant_profile
3737 ) ,
38- components( schemas( // would be very nice to auto-generate schemas
38+ components( schemas( // @TODO: would be very nice to auto-generate schemas
3939 testbed:: ProxyRequestInput ,
4040 testbed:: productizers:: figure:: figure_models:: PopulationQuery ,
4141 testbed:: productizers:: figure:: figure_models:: PopulationResponse ,
@@ -56,12 +56,12 @@ pub mod testbed;
5656struct ApiDoc ;
5757
5858/**
59- * API router - would be nice to auto-generate routes from openapi spec
59+ * API router - // @TODO: would be nice to auto-generate routes from openapi spec
6060 */
6161pub async fn get_router_response (
6262 parsed_request : ParsedRequest ,
6363) -> Result < APIRoutingResponse , APIRoutingError > {
64- let openapi = ApiDoc :: openapi ( ) ;
64+ let openapi = ApiDoc :: openapi ( ) ; // @TODO: ensure as singelton
6565
6666 match ( parsed_request. method . as_str ( ) , parsed_request. path . as_str ( ) ) {
6767 // System routes
@@ -81,7 +81,7 @@ pub async fn get_router_response(
8181 parsed_request. method . as_str ( ) ,
8282 parsed_request. path . as_str ( ) ,
8383 ) ;
84- match operation_id. as_str ( ) { // would be nice to auto-generate this match
84+ match operation_id. as_str ( ) { // @TODO: would be nice to auto-generate this match
8585 "index" => application:: index ( parsed_request) . await ,
8686 "docs" => application:: docs ( parsed_request) . await ,
8787 "health_check" => application:: health_check ( parsed_request) . await ,
0 commit comments