Skip to content

Instantly share code, notes, and snippets.

@citygent
Last active May 7, 2020 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save citygent/f279663331030bb4a2e2bfc7b86d6202 to your computer and use it in GitHub Desktop.
Save citygent/f279663331030bb4a2e2bfc7b86d6202 to your computer and use it in GitHub Desktop.
API Interface for Review in RS-Admin.

User will follow a link from a Salesforce Case to rs-admin.

rs-admin frontend currently lacks ability to query for Organisations by a geoshard ready org_drn_id. It uses the older Orderweb Org_ID.

Ideally the Salesforce Case link would use rs-admin style "Orderweb Org IDs", and the mapping of an OrderWeb Org_ID to a geoshard ready Org_Drn_ID would happen on the rs-admin backend by calling out to rs-accounts first.

Proposed Link structure:

Salesforce review link:

restaurants.deliveroo.net/organizations/:orgID/photo_review/

Review tool frontend will request:

https://rs-admin.rooenv-staging.io/organizations/:orgID/images?status=pending

e.g:

restaurants.deliveroo.net/organizations/24402/photo_review/

https://rs-admin.rooenv-staging.io/organizations/24402/images?status=pending

/api/internal/organizations/fcc21baa-4ee5-4537-950a-39cc76adf0fc/images?status=pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment