Rate how clean a toilet is

For the web page of this site only. It needs a Turnstile token unless an account is signed in. A rating needs no confirmation. Each person has one rating per toilet, and the latest rating counts. The answer holds the new average and count. One address adds one new rater per toilet per day.

post/api/v1/toilets/{id}/ratings

Request

  • Base URL: https://wcway.com
  • URL: https://wcway.com/api/v1/toilets/{id}/ratings
  • Auth: none required

Path parameters

idstring required

Request body

device_idstring

Random number that the browser makes once and keeps. The server stores only its hash. A signed-in account needs none.

ratinginteger required

1 is dirty. 5 is spotless.

turnstile_tokenstring

Cloudflare Turnstile token from the page of this site. A signed-in account needs none.

Response

The rating is saved and counted.

idstring required
ratinginteger required

Changes

No recorded changes to this operation across all 1 revision of this API.