Skip Navigation

Tweaks to parameter and response names for moderation endpoints

codeberg.org

[API] [Bug] `expiredAt` query parameter of `api/alpha/community/moderate/ban` should be in snake case, not camel case

POST /community/moderate/ban was using expiredAt while the rest of the API is in snake_case. Also some of the response was not in snake case either, so I tided that up.

PUT /community/moderate/unban is also affected. (why is it a PUT??)

GET /community/moderate/bans now uses snake case.

We're cooking up an automatically-updated swagger / openapi solution right now, please bear with us.

2 comments