Skip to content

SubhashiniArun/Simple-Api-creation-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POST request to API

Code allows you to send a POST request to the route '/test' that takes a string "string_to_cut" as an argument. The code returns a key “return_string” and a string containing every third letter from the original string.

Project dependencies: Node.js, npm

To run the code:

  1. Download/clone the code
  2. Do npm install
  3. Run the code using npm start
  4. Send a POST request with the body {"string_to_cut":"anystringtocut"} to http://localhost:3000/test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published