You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Requesting info about plugins, for example to get the latest release of Chunky, hitting /api/v1/projects/chunky/latestrelease
returns an OK result if the slug of the project is all lowercase.
However, /api/v1/projects/chunky/versions/1.3.92/PAPER/download returns a 404.
This endpoint requires the slug for the project to be properly capitalized, in this case as Chunky.
Expected behavior
The endpoints should have the same case sensitivity, or specify what they require
Steps to reproduce
Different endpoints have different capitalization requirements. I found that messing around with the request builders on the API docs were a good tool to see which endpoints were case-sensitive or not.
latest release seems to work fine for me, i.e https://hangar.papermc.io/api/v1/projects/chUnky/latestrelease returns fine, the download ill have to take a look at. they just redirect to our cdn (which cant handle casing), they most likely just pass the user data and not the db data.
Observed/problematic behavior
Requesting info about plugins, for example to get the latest release of Chunky, hitting
/api/v1/projects/chunky/latestrelease
returns an OK result if the slug of the project is all lowercase.
However,
/api/v1/projects/chunky/versions/1.3.92/PAPER/download
returns a 404.This endpoint requires the slug for the project to be properly capitalized, in this case as
Chunky
.Expected behavior
The endpoints should have the same case sensitivity, or specify what they require
Steps to reproduce
Different endpoints have different capitalization requirements. I found that messing around with the request builders on the API docs were a good tool to see which endpoints were case-sensitive or not.
The two URLs I used that raised this issue:
https://hangar.papermc.io/api/v1/projects/chunky/latestrelease
https://hangar.papermc.io/api/v1/projects/chunky/versions/1.3.92/PAPER/download
Other
No response
The text was updated successfully, but these errors were encountered: