Skip to content

Conversation

balub
Copy link
Contributor

@balub balub commented May 20, 2024

Closes HSB-441

Description

In this PR we are adding features to the Hoppscotch platform to support interaction with the Hoppscotch CLI. This PR introduces the following routes for this:

  • POST http://localhost:3170/v1/access-tokens/create - Create a Personal access token
  • DELETE http://localhost:3170/v1/access-tokens/revoke?id= - Delete a Personal access token
  • GET http://localhost:3170/v1/access-tokens/list?offset=0&limit=10 - Get a list of personal access tokens
  • GET http://localhost:3170/v1/access-tokens/collection/id - Get a team-collections for cli
  • GET http://localhost:3170/v1/access-tokens/environment/id - Get a team-environments for cli

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

@balub balub requested review from mirarifhasan and ankitsridhar16 and removed request for ankitsridhar16 May 20, 2024 19:58
@balub balub self-assigned this May 20, 2024
@balub balub marked this pull request as ready for review May 21, 2024 16:14
@RaHehl
Copy link
Contributor

RaHehl commented May 28, 2024

Hey, cool feature, for CI/CD use!

Is it possible to introduce a team access token?
Background: We usually do not deposit personalized tokens in pipelines.

And at some point later it would be exciting if you could introduce something like versioning so that you have reproducible CI/CD pipelines. Maybe so that you can choose between the latest and a specific version depending on your usecase.

Copy link
Contributor Author

@balub balub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changes complete

Copy link
Contributor

@mirarifhasan mirarifhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@balub balub merged commit 4bd23a8 into next May 28, 2024
@balub balub deleted the feat/pat branch May 28, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants