Skip to content

Instantly share code, notes, and snippets.

class Votings {
final String name;
final int? createdAt;
final String? referenceOrder;
const Votings({
required this.name,
this.referenceOrder,
this.createdAt,
});
}
@kl4n4
kl4n4 / package.json
Created June 29, 2017 06:51
Basic mongoose setup with TypeScript
{
"name": "platform-authentication-service",
"version": "1.0.0",
"description": "",
"main": "build/server.js",
"scripts": {
"start": "node build/server.js",
"start-dev": "nodemon build/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
@kl4n4
kl4n4 / gist:1466279
Created December 12, 2011 09:49
API Pricing Example with Gift Code (Successful)
POST /reservation/price
quantity=1&start_date=2011-11-01&end_date=2011-11-03&country_code=ES&insurance=false&gift_code=secr3tk3y
~~~
HTTP/1.1 200
{
"success" : true,
@kl4n4
kl4n4 / gist:1466250
Created December 12, 2011 09:43
API Pricing Example (Successful)
POST /reservation/price
quantity=1&start_date=2011-11-01&end_date=2011-11-15&country_code=AT&insurance=false
~~~
HTTP/1.1 200
{
"success" : true,
@kl4n4
kl4n4 / gist:1466195
Created December 12, 2011 09:33
API Pricing Example (Failure)
POST /reservation/price
quantity=1&start_date=2011-11-01&country_code=XA&insurance=false
~~~
HTTP/1.1 400
{
"success" : false,