This repository contains code for the 2022 Lyft Apprenticeship assessment.
This application accepts a POST request to the /test
route with the property string_to_cut
in the body of the request and returns every third letter in the form of a JSON response {return_string : "muydv"}
All requests excluding POST requests sent to the /test
route will return a 404 response.
- Clone this repository
- Install dependencies
npm install
- Start application
npm start
-
Make POST request to
/test
route withstring_to_cut
prop in the body of the requestcurl -X POST localhost:3000/test --data '{"string_to_cut": "iamyourlyftdriver"}' -H 'Content-Type: application/json'
-
The response received should be
{return_string : "muydv"}