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.