Skip to content

simplon-lyon/promo3-math-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Math API

A simple API to do math calculation.

Addition

Realize an addition.

  • URL:

    /add

  • Method:

    GET

  • URL Param:

    require:

    a=[number]

    b=[number]

  • Success Response:

    Code: 200 OK

    Content: [number]

  • Error Response:

    Code: 400 Bad Request

    Content: None

Substraction

Realize a substraction.

  • URL:

    /sub

  • Method:

    GET

  • URL Param:

    require:

    a=[number]

    b=[number]

  • Success Response:

    Code: 200 OK

    Content: [number]

  • Error Response:

    Code: 400 Bad Request

    Content: None

Division

Realize a division.

  • URL:

    /div

  • Method:

    GET

  • URL Param:

    require:

    a=[number]

    b=[number]

  • Success Response:

    Code: 200 OK

    Content: [number]

  • Error Response:

    Code: 400 Bad Request

    Content: None

Multiplication

Realize a multiplication.

  • URL:

    /mul

  • Method:

    GET

  • URL Param:

    require:

    a=[number]

    b=[number]

  • Success Response:

    Code: 200 OK

    Content: [number]

  • Error Response:

    Code: 400 Bad Request

    Content: None

About

A simple API to do math calculation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published