Skip to content

An API that takes in an operation and two numbers in JSON format, performs the operation on the numbers and returns the result.

Notifications You must be signed in to change notification settings

Ideeee/Word-Problem-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hng-task-two

A POST API that takes a sample json:

{ “operation_type”: Enum <addition | subtraction | multiplication> , “x”: Integer, “y”: Integer }

The Operation can either be addition, subtraction or mutiplication x can be a number and Integer datatype y can be a number and Integer datatype

Based on the operation sent, the app performs a simple arithmetic operation on x and y and returns a response with the result of the operation.

Test it out here:

About

An API that takes in an operation and two numbers in JSON format, performs the operation on the numbers and returns the result.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published