Skip to content

Latest commit

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

mathp

Math problem generation.

Install

Prerequisites:

git clone https://github.com/vikramdurai/mathp
cd mathp
go install

API Calls and Parameters

  • /api/: the API endpoint. Uses the following parameters:

    ParameterSample ValuesType
    Grade5,3,6int
    SyllabusNCERT,CBSEstring
    ModeAlgebra,Geometrystring
    Patternpolynomial,lineqstring
    Amount3,4,7,9int

    Currently we only use Pattern and Amount, so feel free to omit the others in the url for the time being.

    Usage:

    GET /api/?pattern=<pattern>&amount=<amount>
    

    For example:

    GET /api/?pattern=polynomial&amount=2
    

    returns a JSON-encoded reply containing two polynomials.

    A typical result:

    {
    "request": {
    "pattern": "polynomial",
    "amount": 2,
    },
    "reply": [
    "3x + -4y",
    "4a² - 2bc²a",
    ]
    }
    
  • /api/pdf: the API endpoint that generates PDFs. No parameters, delivers raw application/pdf. I may add some customization options later. Output of this endpoint looks something like this: image of PDF generated by mathp

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages