/add - POST /get - GET /get/<name> - GET /report/<name> - GET
Add a new webring
{
"name": "example",
"url": "https://example.com",
"desc": "optional description"
}
{
"message": "added",
"name": "example"
}
Get a list of all webrings
List of all the webrings in JSON
Get a specific webring by name
{
"url": "https://example.com",
"desc": "empty"
}
Report a webring that breaks the rules or abuses the API
{"message": "reported"}
{"error": "no JSON sent"} - given when the user didn't provide any data in the POST request
{"error": "missing fields"} - given when required fields (name or url) are missing
{"error": "url already exists"} - given when the url provided in the /add request already exists
{"error": "name already exists"} - given when the name provided in the /add request already exists
{"error": "name not found"} - given when the name provided in report doesn't exist