[PR #4191] [MERGED] HSB-462 feat: infra token module and sh apis #4698

Closed
opened 2026-03-17 02:12:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4191
Author: @mirarifhasan
Created: 7/16/2024
Status: Merged
Merged: 7/29/2024
Merged by: @balub

Base: nextHead: feat/infra-token-user-apis


📝 Commits (10+)

  • b73a381 feat: infra token module added
  • 0f66bf2 feat: infra token guard added
  • d0911b5 feat: token prefix removed
  • dc285a0 feat: get pending invites api added
  • c3a1011 docs: swagger doc added for get user invites api
  • cb48555 feat: delete user invitation api added
  • 3c09434 feat: get users api added
  • 2056063 feat: update user api added
  • 000360d feat: update admin status api added
  • dea041e feat: create invitation api added

📊 Changes

21 files changed (+1075 additions, -126 deletions)

View changed files

📝 packages/hoppscotch-backend/package.json (+3 -0)
packages/hoppscotch-backend/prisma/migrations/20240726121956_infra_token/migration.sql (+15 -0)
📝 packages/hoppscotch-backend/prisma/schema.prisma (+10 -0)
📝 packages/hoppscotch-backend/src/access-token/access-token.service.ts (+2 -15)
📝 packages/hoppscotch-backend/src/admin/admin.service.ts (+7 -0)
📝 packages/hoppscotch-backend/src/app.module.ts (+2 -0)
packages/hoppscotch-backend/src/decorators/bearer-token.decorator.ts (+15 -0)
📝 packages/hoppscotch-backend/src/errors.ts (+43 -0)
📝 packages/hoppscotch-backend/src/gql-schema.ts (+2 -0)
packages/hoppscotch-backend/src/guards/infra-token.guard.ts (+47 -0)
packages/hoppscotch-backend/src/infra-token/infra-token.controller.ts (+248 -0)
packages/hoppscotch-backend/src/infra-token/infra-token.model.ts (+43 -0)
packages/hoppscotch-backend/src/infra-token/infra-token.module.ts (+14 -0)
packages/hoppscotch-backend/src/infra-token/infra-token.resolver.ts (+68 -0)
packages/hoppscotch-backend/src/infra-token/infra-token.service.ts (+160 -0)
packages/hoppscotch-backend/src/infra-token/request-response.dto.ts (+115 -0)
packages/hoppscotch-backend/src/interceptors/infra-token.interceptor.ts (+30 -0)
📝 packages/hoppscotch-backend/src/main.ts (+38 -1)
📝 packages/hoppscotch-backend/src/types/input-types.args.ts (+11 -0)
📝 packages/hoppscotch-backend/src/utils.ts (+11 -0)

...and 1 more files

📄 Description

Closes HSB-462

What's changed

In this PR, we introduced infra-token module in the Backend project.
By this PR, Admin can create/delete/fetch infra-tokens.

Also, this PR will introduce User Management REST APIs for external usages.

Notes to reviewers

Nil


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4191 **Author:** [@mirarifhasan](https://github.com/mirarifhasan) **Created:** 7/16/2024 **Status:** ✅ Merged **Merged:** 7/29/2024 **Merged by:** [@balub](https://github.com/balub) **Base:** `next` ← **Head:** `feat/infra-token-user-apis` --- ### 📝 Commits (10+) - [`b73a381`](https://github.com/hoppscotch/hoppscotch/commit/b73a381ea8b90c76b91dbb95b7ba7ff18ddc372e) feat: infra token module added - [`0f66bf2`](https://github.com/hoppscotch/hoppscotch/commit/0f66bf2c500de54b4bbfc92cbf05932d8c1ca700) feat: infra token guard added - [`d0911b5`](https://github.com/hoppscotch/hoppscotch/commit/d0911b5aa90589a3677096b176d216e4495a19b8) feat: token prefix removed - [`dc285a0`](https://github.com/hoppscotch/hoppscotch/commit/dc285a0dd0b593f0fb657b1eb80c91317876a8bb) feat: get pending invites api added - [`c3a1011`](https://github.com/hoppscotch/hoppscotch/commit/c3a101187164dcd5564f16d21e2b35a5b3840638) docs: swagger doc added for get user invites api - [`cb48555`](https://github.com/hoppscotch/hoppscotch/commit/cb4855539e50fdc1151392496033f028f73f8e51) feat: delete user invitation api added - [`3c09434`](https://github.com/hoppscotch/hoppscotch/commit/3c094345098568e748b1c9fe5418b96b48afcf52) feat: get users api added - [`2056063`](https://github.com/hoppscotch/hoppscotch/commit/2056063136ffd2a71fc0bfe296ae7379ec8c263b) feat: update user api added - [`000360d`](https://github.com/hoppscotch/hoppscotch/commit/000360db5cd956008cb97513786a849e9ae0ac0a) feat: update admin status api added - [`dea041e`](https://github.com/hoppscotch/hoppscotch/commit/dea041e20477b581feeda325a63fe419eeca8154) feat: create invitation api added ### 📊 Changes **21 files changed** (+1075 additions, -126 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/package.json` (+3 -0) ➕ `packages/hoppscotch-backend/prisma/migrations/20240726121956_infra_token/migration.sql` (+15 -0) 📝 `packages/hoppscotch-backend/prisma/schema.prisma` (+10 -0) 📝 `packages/hoppscotch-backend/src/access-token/access-token.service.ts` (+2 -15) 📝 `packages/hoppscotch-backend/src/admin/admin.service.ts` (+7 -0) 📝 `packages/hoppscotch-backend/src/app.module.ts` (+2 -0) ➕ `packages/hoppscotch-backend/src/decorators/bearer-token.decorator.ts` (+15 -0) 📝 `packages/hoppscotch-backend/src/errors.ts` (+43 -0) 📝 `packages/hoppscotch-backend/src/gql-schema.ts` (+2 -0) ➕ `packages/hoppscotch-backend/src/guards/infra-token.guard.ts` (+47 -0) ➕ `packages/hoppscotch-backend/src/infra-token/infra-token.controller.ts` (+248 -0) ➕ `packages/hoppscotch-backend/src/infra-token/infra-token.model.ts` (+43 -0) ➕ `packages/hoppscotch-backend/src/infra-token/infra-token.module.ts` (+14 -0) ➕ `packages/hoppscotch-backend/src/infra-token/infra-token.resolver.ts` (+68 -0) ➕ `packages/hoppscotch-backend/src/infra-token/infra-token.service.ts` (+160 -0) ➕ `packages/hoppscotch-backend/src/infra-token/request-response.dto.ts` (+115 -0) ➕ `packages/hoppscotch-backend/src/interceptors/infra-token.interceptor.ts` (+30 -0) 📝 `packages/hoppscotch-backend/src/main.ts` (+38 -1) 📝 `packages/hoppscotch-backend/src/types/input-types.args.ts` (+11 -0) 📝 `packages/hoppscotch-backend/src/utils.ts` (+11 -0) _...and 1 more files_ </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Issue # here --> Closes HSB-462 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed <!-- Describe point by point the different things you have changed in this PR --> In this PR, we introduced `infra-token` module in the Backend project. By this PR, Admin can create/delete/fetch `infra-tokens`. Also, this PR will introduce User Management REST APIs for external usages. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [x] Not Completed - [ ] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> Nil --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:12:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4698
No description provided.