A simple one-route API for calculating some statistical values.
Post route takes a text file as a list of numeric values, processes it and returns the following values:
- minimum value;
- maximum value;
- average;
- median;
- longest increasing sequence of numbers;
- longest decreasing sequence of numbers.
This API assumes the following:
- Install an IDE, for example PHPStorm, and clone this repository using git clone;
- Install Docker desktop to launch the runtime environment with Nginx and PHP. All configuration files are contained in this repository. You can docker-compose up to run containers, and ctrl+C to exit;
- Install postman and import the Test.postman_collection.json from this repository, which contains the route for testing;
- The route accepts only one .txt file with a list of numbers (one line - one number);
- Because memory resources are not infinite, there is a limit of 100MB on the uploaded file;
- The API returns the response in json format
This API was developed by Kate Koltsova.
To contact the developer, use the methods specified in the profile.