WATSON-as-a-Service

The power of WATSON, now as a freely usable API.

Endpoints

POST https://watson-as-a-service.vercel.app/api/encode

Will WATSON-encode the provided request body. By default, it will perform the encoding as a string, but you can specify a type parameter to use other data types. Accepted values: int, float, string, object, array, bool. Anything else will be interpreted as string.

Each response will contain two fields – ok (a boolean which specifies whether the request has succeeded) and either a data (WATSON-encoded string) or an error (string).


POST https://watson-as-a-service.vercel.app/api/decode

Will decode a WATSON-encoded string.

Each response will contain two fields – ok (a boolean which specifies whether the request has succeeded) and either a data (a string that contains the decoded data) or an error (string).

Demo