Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dottorblaster/stocazzo
Stocazzo As A Service
https://github.com/dottorblaster/stocazzo
fastify javascript nodejs server stocazzo
Last synced: 26 days ago
JSON representation
Stocazzo As A Service
- Host: GitHub
- URL: https://github.com/dottorblaster/stocazzo
- Owner: dottorblaster
- License: mit
- Created: 2014-09-16T22:40:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T00:40:18.000Z (7 months ago)
- Last Synced: 2024-04-14T09:55:20.081Z (7 months ago)
- Topics: fastify, javascript, nodejs, server, stocazzo
- Language: TypeScript
- Homepage: http://stocazzo.io
- Size: 2.46 MB
- Stars: 229
- Watchers: 6
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stocazzo As A Service
A Node REST service to provide Stocazzo as an asset for your application.## API endpoints
### /
Will return a "stocazzo"._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "stograncazzo"#### Example
Standard API call:```sh
$ http get stocazzo.ioHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "stocazzo"
}
```Example with a query:
```sh
$ http get stocazzo.io q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "stocazzo"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "stograncazzo"
}
```### /caps
Will return a "stocazzo", but caps. So, "STOCAZZO"._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "STOGRANCAZZO"#### Example
Standard API call:```sh
$ http get stocazzo.io/capsHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "STOCAZZO"
}
```Example with a query:
```sh
$ http get stocazzo.io/caps q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "STOCAZZO"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/caps q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "STOGRANCAZZO"
}
```### /camel
Camelcase can always be useful. Will return a "StoCazzo"._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "StoGranCazzo"#### Example
Standard API call:```sh
$ http get stocazzo.io/camelHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "StoCazzo"
}
```Example with a query:
```sh
$ http get stocazzo.io/camel q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "StoCazzo"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/camel q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "StoGranCazzo"
}
```### /ascii
You want a translation in your language and you don't like text or you want print it more nerdly? No problem, will return "8====D"._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "8=======D"#### Example
Standard API call:```sh
$ http get stocazzo.io/asciiHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "8====D"
}
```Example with a query:
```sh
$ http get stocazzo.io/ascii q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "8====D"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/ascii q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "8=======D"
}
```### /snake
You don't like camelCase and you prefer the snake_case notation? No problem, will return "sto_cazzo"._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "sto_gran_cazzo"#### Example
Standard API call:```sh
$ http get stocazzo.io/snakeHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "sto_cazzo"
}
```Example with a query:
```sh
$ http get stocazzo.io/snake q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "sto_cazzo"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/snake q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Aug 2015 16:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "sto_gran_cazzo"
}
```### /sto-conte
Tv series lover? This is the endpoint for you: it will return "Sto cazzo!". Heavily inspired by [Corrado Guzzanti character](https://www.youtube.com/watch?v=ivbyG6qcFqg) in the great Italian tv series ["Boris"](http://www.imdb.com/title/tt1020116/)._Optional parameters_:
1. **q** - a query
2. **big** - configures the response as a "Sto gran cazzo!"#### Example
Standard API call:```sh
$ http get stocazzo.io/sto-conteHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "Sto cazzo!"
}
```Example with a query:
```sh
$ http get stocazzo.io/sto-conte q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "Sto cazzo!"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/sto-conte q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "Sto gran cazzo!"
}
```### /varg
A gothic `stocazzo` version, reminiscing the classic black metal logos._Optional parameters_:
1. **q** - a query
2. **big** - even bolder#### Example
Standard API call:```sh
$ http get stocazzo.io/vargHTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:03:08 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"response": "𝔖𝔗𝔒ℭ𝔄ℨℨ𝔒"
}
```Example with a query:
```sh
$ http get stocazzo.io/varg q==chi\?HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:06:07 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "𝔖𝔗𝔒ℭ𝔄ℨℨ𝔒"
}
```Example with even more emphasis:
```sh
$ http get stocazzo.io/varg q==chi\? big==1HTTP/1.1 200 OK
Connection: keep-alive
Date: Sat, 08 Jan 2016 09:08:34 GMT
Transfer-Encoding: chunked
cache-control: no-cache
content-encoding: gzip
content-type: application/json; charset=utf-8
vary: accept-encoding{
"query": "chi?",
"response": "𝕾𝕿𝕺𝕮𝕬𝖅𝖅𝕺"
}
```