File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exercise.wwwapi/Endpoints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ public static void ConfigureCohortEndpoints(this WebApplication app)
1717 var cohorts = app . MapGroup ( "cohorts" ) ;
1818 cohorts . MapPost ( "/" , CreateCohort ) . WithSummary ( "Create a cohort" ) ;
1919 cohorts . MapGet ( "/" , GetAllCohorts ) . WithSummary ( "Get all cohorts" ) ;
20- cohorts . MapGet ( "/{id }" , GetCohort ) . WithSummary ( "Get a cohort by ID" ) ;
20+ cohorts . MapGet ( "/cohortId/{cohortId }" , GetCohort ) . WithSummary ( "Get a cohort by ID" ) ;
2121 //cohorts.MapGet("/{userId}", GetCohortByUserId).WithSummary("");
22- cohorts . MapPost ( "/{cohortId}/{userId}/{courseId}" , AddUserToCohort ) . WithSummary ( "Add a user to a cohort" ) ;
23- cohorts . MapDelete ( "/{cohortId}/{userId}/{courseId}" , DeleteUserFromCohort ) . WithSummary ( "Delete a user from a cohort" ) ;
22+ cohorts . MapPost ( "/cohortId/ {cohortId}/userId/ {userId}/courseId /{courseId}" , AddUserToCohort ) . WithSummary ( "Add a user to a cohort" ) ;
23+ cohorts . MapDelete ( "/cohortId/ {cohortId}/userId/ {userId}/courseId /{courseId}" , DeleteUserFromCohort ) . WithSummary ( "Delete a user from a cohort" ) ;
2424 }
2525
2626 [ ProducesResponseType ( StatusCodes . Status200OK ) ]
You can’t perform that action at this time.
0 commit comments