Create an endpoint that will take in the variableId and environmentId and return all the revisions that exist for the variable. The endpoint will look like this:
GET /api/variable/:variableId/revisions/:environmentId
Solution
We highly encourage you to go through the existing code to understand how permissions work, and reuse it in your function.
Description
Create an endpoint that will take in the
variableId
andenvironmentId
and return all the revisions that exist for the variable. The endpoint will look like this:Solution
We highly encourage you to go through the existing code to understand how permissions work, and reuse it in your function.
Feature implementation
variable.service.ts
to include a method namedgetRevisionsOfVariable
variable.controller.ts
to link an endpoint for the service functionTests
Add the following tests in
variable.e2e.spec.ts
[]
if the variable has no revision