Introduction
...
The example focuses on how easy it is to create a micro-service and its APIs as well as how to use the IMFV.
The Input mapping, filtering and validation (IMFV) is an engine provided by the SOAJS framework and is responsible to fetch and clean the inputs arriving to your API at runtime.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{"result": true,"data": {"firstName": "John","lastName": "Smith"}} |
"testPost" API: Success
This API is exactly like testGet but uses the "post" method.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl -X POST -H "Content-type:application/json" -H "Accept:application/json" "http://127.0.0.1:4010/testPost" -d '{"firstName":"John","lastName":"Smith","email":"john@smith.com"}' |
...