feat: state list endpoint (#2717)
* feat: state list endpoint * dev: update states endpoint * dev: mark default state endpoint
This commit is contained in:
parent
10037222b6
commit
556b2d2617
3 changed files with 33 additions and 18 deletions
|
|
@ -20,11 +20,19 @@ urlpatterns = [
|
|||
StateViewSet.as_view(
|
||||
{
|
||||
"get": "retrieve",
|
||||
"put": "update",
|
||||
"patch": "partial_update",
|
||||
"delete": "destroy",
|
||||
}
|
||||
),
|
||||
name="project-state",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/states/<uuid:pk>/mark-default/",
|
||||
StateViewSet.as_view(
|
||||
{
|
||||
"post": "mark_as_default",
|
||||
}
|
||||
),
|
||||
name="project-state",
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue