Crooked
adjective. ['ˈkrʊkəd'] having or marked by bends or angles; not straight or aligned.
This isn't a run-of-the-mill endeavor; it's a showcase of my expertise in cutting-edge technologies such as Node.js and AWS services including Lambda, DynamoDB, and API Gateway.
"Crooked" is a non-literal association, a bridge between data and insight, where I've masterfully harnessed technology to make sense of complex information. The project revolves around corruption perception indices for numerous countries globally, spanning back to 1998.
At the core of this project lies a meticulously crafted REST API, skillfully designed with two pivotal endpoints. The first, a GET method, seamlessly serves up raw data about a specific country's corruption perception. On the other hand, the POST method takes the experience a step further by delivering refined and processed data, providing invaluable insights at the click of a button.
Get Corruption Perception Index by Country
[ GET ]
https://zf3wh6qov3.execute-api.us-east-2.amazonaws.com/api?country={country}
Parameter
{country} The unique string with the country name that you want to receive data.
Example
$ curl -o response.json https://zf3wh6qov3.execute-api.us-east-2.amazonaws.com/api?country=ColombiaProcessed Corruption Perception Index by Country
[ POST ]
https://zf3wh6qov3.execute-api.us-east-2.amazonaws.com/api
Body
{type} The string with the kind of process to run: average, min or max.
{country} Optional The unique string with the country name that you want to receive data.
If type doesn't exists will be returned the result as 0.
Example
$ curl -X POST https://zf3wh6qov3.execute-api.us-east-2.amazonaws.com/api
-H "Content-Type: application/json"
-d '{"type": "average", "country": "Colombia"}'Response
{"type":"average", "result":10.852777777777778, "country":"Colombia"}