This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x-backend-request: | |
uri: '...' | |
body: | |
part1: | |
field: '{$.req.body.field}' | |
part2: '{$.req.params}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on_request: | |
- get_cached: | |
method: get # can be omitted, get is default | |
# Support cache-control refreshs; | |
# key_value bucket returns 404 when receiving no-cache header | |
headers: | |
cache-control: '{cache-control}' | |
uri: /{domain}/sys/key_value/postservice.png/{hash} | |
- return_on_success!: '{$.get_cached}' | |
- get_post: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- get_cached: | |
method: get # can be omitted, get is default | |
headers: | |
cache-control: '{cache-control}' | |
uri: /{domain}/sys/key_value/postservice.png/{hash} | |
- return_on_success!: '{$.get_cached}' | |
- get_post: | |
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$2" = "sqlite" ] | |
then | |
npm config set restbase:test_backend sqlite | |
else | |
npm config set restbase:test_backend cassandra | |
fi | |
if [ "$1" = "test" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on_setup: | |
- setup_png_storage: | |
request: | |
method: put | |
uri: /{domain}/sys/key_value/postservice.png | |
on_request: | |
- try_storage_and_return: | |
request: | |
method: get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preset": "node-style-guide", | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preset": "node-style-guide", | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Indexes | |
- Index should be non-empty array | |
- Index cannot have duplicate attributes | |
- Index must have at least one 'hash' attribute | |
- All indexed attributes must exist in a schema | |
- Static indexes cannot be created on a table with no range indexes | |
# Revision policy | |
- Only keys 'type', 'grace_ttl' and 'count' are allowed | |
- Type can be 'all' and 'latest' | |
- Grace_ttl must be a number and can't be less then minGcGrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/{module:graphoid}: | |
x-modules: | |
- name: simple_service | |
version: 1.0.0 | |
type: file | |
options: | |
paths: | |
# Do we need those parameters?? | |
/v1/png/{title}/{revision}: | |
post: |
OlderNewer