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 secret #272

Open rajdip-b opened 2 weeks ago

rajdip-b commented 2 weeks ago

Description

Create an endpoint that will take in the secretId and environmentId and return all the revisions that exist for the secret. The endpoint will look like this:

GET /api/secret/:secretId/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 secret.e2e.spec.ts

anudeeps352 commented 1 week ago

/attempt

github-actions[bot] commented 1 week ago

Assigned the issue to @anudeeps352!