fmtm icon indicating copy to clipboard operation
fmtm copied to clipboard

Remove organisations/unapproved endpoints

Open spwoodcock opened this issue 1 year ago • 8 comments

Describe the bug

  • We have two GET endpoints /organisations/unapproved/ and /organisations/unapproved/{org_id} that I don't think are necessary.

Expected behavior

  • They should be removed in favour of the /organisations/ endpoint, which filters approved/unapproved based on admin access. (https://github.com/hotosm/fmtm/pull/1253)
  • Requires coordination with the frontend to remove references to these endpoints.
  • The DELETE /unapproved endpoint is required, due to different role access level.

spwoodcock avatar Feb 22 '24 17:02 spwoodcock