Code Monkey home page Code Monkey logo

stocazzo's Introduction

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:

$ http get stocazzo.io

HTTP/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:

$ 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:

$ http get stocazzo.io q==chi\? big==1

HTTP/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:

$ http get stocazzo.io/caps

HTTP/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:

$ 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:

$ http get stocazzo.io/caps q==chi\? big==1

HTTP/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:

$ http get stocazzo.io/camel

HTTP/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:

$ 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:

$ http get stocazzo.io/camel q==chi\? big==1

HTTP/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:

$ http get stocazzo.io/ascii

HTTP/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:

$ 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:

$ http get stocazzo.io/ascii q==chi\? big==1

HTTP/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"
}

/underscore

You don't like camelCase and you prefer the underscore_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:

$ http get stocazzo.io/underscore

HTTP/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:

$ http get stocazzo.io/underscore 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:

$ http get stocazzo.io/underscore q==chi\? big==1

HTTP/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 in the great Italian tv series "Boris".

Optional parameters:

  1. q - a query
  2. big - configures the response as a "Sto gran cazzo!"

Example

Standard API call:

$ http get stocazzo.io/sto-conte

HTTP/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:

$ 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:

$ http get stocazzo.io/sto-conte q==chi\? big==1

HTTP/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!"
}

stocazzo's People

Contributors

dottorblaster avatar lifeisfoo avatar mirkopizii avatar

Watchers

Lorenzo Setale avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.