keyshade-xyz / keyshade

Realtime secret and configuration management tool, with the best in class security and seamless integration support
https://keyshade.xyz
Mozilla Public License 2.0
118 stars 55 forks source link

API: Create endpoint for fetching all revisions of a variable #271

Open rajdip-b opened 2 weeks ago

rajdip-b commented 2 weeks ago

Description

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.

Feature implementation

Tests

Add the following tests in variable.e2e.spec.ts

yogesh1801 commented 6 days ago

/attempt

github-actions[bot] commented 6 days ago

Assigned the issue to @yogesh1801!