Skip to content

Instantly share code, notes, and snippets.

@shockey
Created November 10, 2017 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shockey/3c719b4a2046270a02d040ce0a0ea8b4 to your computer and use it in GitHub Desktop.
Save shockey/3c719b4a2046270a02d040ce0a0ea8b4 to your computer and use it in GitHub Desktop.
openapi: 3.0.0
info:
title: math.js web service
version: '1.0'
servers:
- url: http://api.mathjs.org/v1
paths:
/:
get:
summary: Evaluates an expression and returns result as plain text
parameters:
- in: query
name: expr
required: true
description: The expression to be evaluated
schema:
type: string
example: 2+3*sqrt(4)
responses:
'200':
description: OK
content:
text/html:
schema:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment