HOW TO USE

Description Params Query
Get counter /count/id/name_id /count/?id=name_id
Set counter /set/name_id/num_count /set?id=name_id&count=num_count

RESULT

Description Code Response
Get counter 200 {"status":"success","message":"The ID 'name_id' was added and the count was successfully changed","count":1}
200 {"status":"success","message":"The count of ID 'name_id' was successfully changed","count":2}
Set counter 202 {"status":"success","message":"The ID 'name_id' was added and the count was successfully changed","count":"1000"}
201 {"status":"success","message":"The count of ID 'name_id' was successfully changed","count":"1000"}
400 {"status":"error","message":"Invalid count value for 'name_id'. Count should be a number"}

OTHER RESULT

Code Response
404 {"status":"error","message":"Route not found"}
500 {"status":"error","message":"Internal Server Error"}