Skip to content

cervols/web-calc

Repository files navigation

The Calculator

It is a small web-service which offers the following functionality: for a given arithmetic expression (Integer Numbers and the operators +-*/), the service responds to the result of the expression.

The request is using GET, providing the parameter “expression”, e.g.

Note: to use '+' operation you have to encode it in the expression parameter, e.g.

The response format is JSON and including two keys:

  • expression: [echo the computed expression]
  • result: [computed result of the expression]

For security reasons, an existing access token with its identifier must be specified in the request headers in the folowing format:

[TOKEN_ID]:[TOKEN]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published