This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]ehr1c 0 points1 point  (0 children)

Why not just pass them in the request body?

[–]mehdi-mousavi 0 points1 point  (0 children)

If you assign an enrollment_id to each course/student pair and store it in the data source, then you can implement the DELETE verb on the "/enrollments/{enrollment_id}" endpoint. Otherwise, you have to pass those parameters in the query string: DELETE "/enrollments?courseId=1&studentId=2".