Ro maybe it's on purpose since you're iterating on this, but if not the "API" section on https://tweaking.thebad.space/about needs an update. Appreciate your work on this.
@Are0h It's not, good point. Though substituting one in (curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"url": "example.com"}' https://thebad.space/api/v1/search) has the same result.
Though you lead me to a thought: Could I suggest in a future iteration sending back a JSON response along the lines of {error: “Parameter ‘url' is not a valid URL”} in a case like that?
It's not quite ready for contributors as the data structures are still in flux, so the DB is all over the place, but that will be finalized soon so that I can get some migrations in there for easy setup.
Add comment