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:
parent
143ba75604
commit
f87a9e9d3a
8 changed files with 125 additions and 2 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue