TrollCallAPIs/README.md

38 lines
754 B
Markdown
Raw Permalink Normal View History

2023-06-19 05:29:10 +00:00
# TrollCallAPIs
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
A set of TrollCallNotAgain-equivalent API hooks, made to let developers create third-party apps for the TrollCall service.
---
TrollCall is great, but the merge of the client and server TrollCallNotAgain has with Next.js is problematic. (ahem, Client/Server Hydration and Server Components (those are messy grr))
There are a few issues with the existing APIs as well:
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
1. Objects get duplicated if their name/first-name is changed.
Doing this:
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
```
2023-08-07 23:29:30 +00:00
PUSH /api/clan/.../troll/name1
2023-06-19 05:29:10 +00:00
{
...
"name": ["name2", ...]
...
}
```
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
results in this on the database:
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
```
trolls/
|- Document {"name": ["name1", ...], ...}
|- Document {"name": ["name2", ...], ...}
```
2023-08-07 23:29:30 +00:00
2023-06-19 05:29:10 +00:00
which is not good.
2023-06-19 05:29:20 +00:00
2023-06-19 05:29:10 +00:00
2. More issues that I forgot
They certainly exist