mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-28 03:29:08 +01:00
perf: include permissions in api list response
This commit is contained in:
@@ -20,15 +20,6 @@ type apiPermissionResponseDto struct {
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// apiListItemDto is the lightweight representation used in list responses
|
||||
type apiListItemDto struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Resource string `json:"resource"`
|
||||
CreatedAt datatype.DateTime `json:"createdAt"`
|
||||
PermissionCount int `json:"permissionCount"`
|
||||
}
|
||||
|
||||
// apiCreateDto is the payload for creating an API
|
||||
// The resource identifier is only accepted here because changing it later would invalidate every token already minted for the API
|
||||
type apiCreateDto struct {
|
||||
|
||||
Reference in New Issue
Block a user