feat: plane API gateway (#188)

* feat: create model for api token and endpoint for creating api tokens

* feat: add list and delete endpoints for tokens
This commit is contained in:
pablohashescobar 2023-01-30 00:58:38 +05:30 committed by GitHub
parent 143ba75604
commit f87a9e9d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 125 additions and 2 deletions

View file

@ -84,6 +84,9 @@ from plane.api.views import (
ModuleViewSet,
ModuleIssueViewSet,
## End Modules
# Api Tokens
ApiTokenEndpoint,
## End Api Tokens
)
@ -679,4 +682,8 @@ urlpatterns = [
name="project-module-issues",
),
## End Modules
# API Tokens
path("api-tokens/", ApiTokenEndpoint.as_view(), name="api-token"),
path("api-tokens/<uuid:pk>/", ApiTokenEndpoint.as_view(), name="api-token"),
## End API Tokens
]