Kelsey Hightower mentioned Zeit last year and I've been meaning to look into it. It's a pretty awesome serverless platform.
I didn't use their now client, I just added a repo to Zeit and it manages the build and deployment for me.
Here's a link to the repo: https://gitlab.com/hooksie1/zeit-test
This was written in Go. Using Go you just need an exported Function and take the http.responseWriter
and the http.Request
. Then do you work on the payload and return the info.
Here's the URL for the endpoint: https://goniq.hooks.technology/api/test
You can test it by giving it a list of strings and it will return only the unique strings. For example:
curl -X POST https://goniq.hooks.technology/api/test -d '{"list": ["testing","testing2","testing3","testing2", "mangolassi", "mangolassi"]}'
It will return this data for you:
["testing","testing2","testing3","mangolassi"]