Skip to content

OjerIsaac/hng2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Backend Stage 2 Task

Study Material

  • REST API TUTORIAL

Task Description

  • Using the same server setup from stage one

  • Create an (POST) api endoint that takes the following sample json:

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

    • 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, perform a simple arithmetic operation on x and y

  • Return a response with the result of the operation and your slack username

  • { "slackUsername": String, "operation_type" : Enum. value, "result": Integer }

  • Push to GitHub

Sample Input { "operation_type": Enum <addition | subtraction | multiplication> , "x": Integer, "y": Integer } Sample Response Format { "slackUsername": String, "result": Integer, "operation_type": Enum.value }

About

HNGi9 second backend task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages