Please describe the feature you want this project to offer
The endpoint /triplets which will tell, if the given sides form a right-angled triangle.
Describe the solution you'd like
- Check all sides are non-zero positive integer
- Check if sides form a valid triangle
- Check if sides form a right-angled triangle using Pythagoras theorem
Additional context (Optional)
Also, add tests for the same.
- form a right-angled triangle (200)
- do not form a right-angled triangle (200)
- do not form a triangle (200)
- bad credentials (400)
Please describe the feature you want this project to offer
The endpoint
/tripletswhich will tell, if the given sides form a right-angled triangle.Describe the solution you'd like
Additional context (Optional)
Also, add tests for the same.