mcyph / fast_api_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fast_api_test

To run this assessment demo on Windows, install python 3.7 or above, then type on the command line:

Or on Linux/Unix, then type on the command line:

  • install curl and mongodb using a package manager, e.g. sudo apt install curl mongodb
  • sudo pip3 --upgrade pip
  • sudo pip3 install -r requirements.txt
  • bash ./run_server.sh

Then on either platform, paste into the console:

curl --location --request POST http://127.0.0.1:8080/incoming --header "Content-Type: application/json" --data-raw "{ \"id\":\"652\", \"findDuplicates\":\"HereWeHaveSomeDuplicatedCharacters\", \"whiteSpacesGalore\":\"Can we replace all this white spaces without using replace please\", \"validateMeOnlyIActuallyShouldBeABoolean\":false,\"numbersMeetNumbers\":[35, 2, 100, 15, 75, 25, 99]}"

Then visit the following link with a web browser:

http://127.0.0.1:8080/outgoing

About


Languages

Language:Python 97.0%Language:Shell 1.7%Language:Batchfile 1.3%