api icon indicating copy to clipboard operation
api copied to clipboard

[feature request] - Stratagem Group endpoint / Stratagem Category data

Open ondrovic opened this issue 6 months ago • 0 comments

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[];
}

ondrovic avatar Jul 13 '25 13:07 ondrovic