1. Division
Divide API
  • Division
    • Endpoints
    • Getting Started
    • Observability and Monitoring
    • Divide two integers
      POST
  1. Division

Endpoints

Home#

This is to verify the API is working on the browser.
It is the root of the app
Endpointhttp://0.0.0.0:5500

Divide#

Takes in method POST and is used to run the divide operation.
Endpoint /api/divide
Payload
{ "a": "10", "b": "5" }
Response
{ "result": "2" }

Edge Cases#

When performing the divide operation we ensure that the following exeptions are caught:
Missing input values
Passing non integer values as inputs
Using zero as an input value
Modified at 2024-07-04 12:37:14
Previous
Division
Next
Getting Started
Built with