Skip to content

Repository for PIAIC-IOT-Q3 (Batch 4-35) resources sharing.

Notifications You must be signed in to change notification settings

sm8082/class-codes-piaic-q3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q1) The first endpoint will accept a Post request on baseURL/reverse and reverse the provided string in the body

Line 23 to 28 in my code mainly deals with reversing a string inside the PostMan's input body supplied as a request and spitting it out on its output body as a response. The rev function at line 26 is mainly responsible for reversing the string supplied whereas line 27 thorws it out as a reponse.

Q1) The second endpoint will accept a Post request on baseURL/count/chars and count the characters (except spaces) in the provided string

Line 29 to 33 in my code mainly deals with counting the number of characters in the given string sent through the PostMan's input body (supplied as a request) and spitting it out on its output body as a response.

About

Repository for PIAIC-IOT-Q3 (Batch 4-35) resources sharing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 100.0%