api
api copied to clipboard
[feature request] - Stratagem Group endpoint / Stratagem Category data
Currently there is no way to get the Stratagem Groups so all we are left with is
[
{
...
"groupId": 1
},
{
...
"groupId": 3
},
]
But there is clearly a schema for it
model StratagemGroup {
id Int @id @default(autoincrement())
name String
stratagems Stratagem[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
I would like to request additional endpoints under Stratagems so we can access that data
method: GET
path: /api/stratagems/group
method: GET
path: /api/stratagems/group/:id
Also access to the Stratagem Category if possible
StratagemCategory {
name: string;
entries: Stratagem[];
}