A lambda that accept the teacher feed back as input ,and output will be 201 ,and the teacher feed back .The lambda only excepts post request .It will return errs if the https method not post, or the feed back is empty.
Test
To test ,
1- Use the lambda endpoint
https://28o5v02966.execute-api.us-west-2.amazonaws.com/default/PostApiForTeacherFeedback
2- For postman , paste the endpoint and make suer changing https to post method.Select body ,raw , and change text to json.After that , Sending a body in Json file such as that {"feedback ":" some feedback form teacher "} ,and select send at the top right corner .The result should be 201 and teacher feedback.
close #46
Description
A lambda that accept the teacher feed back as input ,and output will be 201 ,and the teacher feed back .The lambda only excepts post request .It will return errs if the https method not post, or the feed back is empty.
Test
To test , 1- Use the lambda endpoint https://28o5v02966.execute-api.us-west-2.amazonaws.com/default/PostApiForTeacherFeedback 2- For postman , paste the endpoint and make suer changing https to post method.Select body ,raw , and change text to json.After that , Sending a body in Json file such as that {"feedback ":" some feedback form teacher "} ,and select send at the top right corner .The result should be 201 and teacher feedback.
Using terminal