API: Create endpoint for fetching all revisions of a secret #272
Labels
difficulty: 2
foss hack
Clustering all the curated issues for Foss Hack 2024
good first issue
Good for newcomers
priority: high
scope: api
Everything related to the API
type: feature
Release drafter tag for tagging PRs related to adding new features
Description
Create an endpoint that will take in the
secretId
andenvironmentId
and return all the revisions that exist for the secret. 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
secret.service.ts
to include a method namedgetRevisionsOfSecret
secret.controller.ts
to link an endpoint for the service functionTests
Add the following tests in
secret.e2e.spec.ts
[]
if the secret has no revisionThe text was updated successfully, but these errors were encountered: