Skip to main content
Yosemite CrewDeveloper Docs

Organisationrating API

On this page

Lets a pet parent rate an organisation and check whether they have already rated it. Both routes are called by the mobile app and authenticated with the pet parent's SuperTokens session (requireMobileAuth).

Endpoints

POST /:organisationId

  • Auth: requireMobileAuth
  • Params: organisationId
  • Controller: OrganisationRatingController.rateOrganisation
  • Response: 400: keys message, 200: keys message, 500: keys message

GET /:organisationId/is-rated

  • Auth: requireMobileAuth
  • Params: organisationId
  • Controller: OrganisationRatingController.isUserRatedOrganisation
  • Response: 400: keys message, 200: keys organisation, 500: keys message