web-math-go

command module
v0.0.0-...-b401be1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Unlicense Imports: 7 Imported by: 0

README

web-math-go

Sample web service for storing and calculating math equations. For now only simple cases of math equations are supported, for example

y=x+a
y=x+a-b
y=x+5+a, etc

Currently supported functionalities:

* Basic CRUD operations for storing/removing equations inside Notion database
* Calculate equation on a range from -5 to 5

Examples

Also available inside request_examples folder

# create
curl -X POST localhost:8080/equations -H "content-type: application/json" --data '{"term": "y=x+a+b"}'

# list all
curl localhost:8080/equations

# delete
curl -X DELETE localhost:8080/equations -H "content-type: application/json" --data '{"term": "y=x+a+b"}'

# Get list of points for equation on a range from -5 to 5
curl -X POST localhost:8080/calculate -H "content-type: application/json" --data '{"term": "y=x-a", "args": {"a": 3}}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL