Skip to content

Instantly share code, notes, and snippets.

@netmilk
netmilk / zeit-now-env-vars.txt
Created October 21, 2018 14:02
Zeit Now Default Environment Variables Dump
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME: 6232f98df0bd
NOW: 1
NOW_DC: bru1
NOW_REGION: now-bru
NOW_URL: https://zeit-env-dump-bafdhbyqhd.now.sh
AUTH_TOKEN: f8b82b618044dd02b1fff5f0a22af6f2b11707eb15b17bdb5799e554c4d4b751
DEPLOYMENT_ID: U8pvE1U82S69peP8Xrwm9wok
NOW_PLAN:
TEMP: /tmp
http://129.144.149.144:7001/inventory
http://Production-Gateway-LB-NA-2018238060.us-west-2.elb.amazonaws.com/inventory
http://129.146.21.240:30280/docs/j4c-ecommerce-inventory.apib
@netmilk
netmilk / cars_api.md
Last active September 16, 2017 16:52
REST Full JSON example

Cars API

Car [/car{?id}]

{
 "id": "1",
 "url": "/car?id=1",
 "maker": "vw"
}
@netmilk
netmilk / apiary.apib
Created April 11, 2017 14:15
Fixed-type MSON array minimal example
FORMAT: 1A
# Fixed-type Example MSON
## Resource [/resource]
### Action [GET]
+ Response 200 (application/json)
@netmilk
netmilk / apary.apib
Created April 7, 2017 13:56
Complex MSON enums usage in API blueprint
FORMAT: 1A
# API with enums
# Resource [/resourc]
## Action [POST]
+ Request (application/json)
+ Attributes
@netmilk
netmilk / embed-environments.apib
Created November 23, 2016 13:57
Embed environments configuration
# Data Structures
## Environments (array)
### Items
- (Environment)
## Environment
- label (optional)- The label to be rendered in the Machine colunm in the examples and in the console
@netmilk
netmilk / apiary.apib
Created March 7, 2016 22:07
MSON Array of arrays of arrays
# MSON Array of arrays of arrays
# GET /polygon
+ Response 200 (application/json)
+ Attributes (Complex Polygon)
+ Body
[[[0, 0], [0, 5], [5, 5], [0, 5], [0, 0]], [[1, 1], [4, 1], [4, 4], [1, 4], [1, 1]]
@netmilk
netmilk / swagger.yml
Created March 3, 2016 11:05
Apiary x-summary and x-description Swagger extensions example
swagger: '2.0'
info:
title: Polls API
description: Polls is a simple API allowing consumers to view polls and vote in them.
version: "8234aab51481d37a30757d925b7f4221a659427e"
host: polls.apiblueprint.org
schemes:
- https
paths:
/questions:
@netmilk
netmilk / apiary.apib
Last active April 14, 2016 13:07
MSON Inheritance and Reference with an Object in an Array with bad syntax
# MSON Inheritance and Reference in Body Attribuets in Embed
[Documentation in Apiary](http://docs.embedbodyattributestest1.apiary.io/)
## Links to customized embeds
- [Custom mahine column ](http://rawgit.com/netmilk/ee037a5a56681ea7b39c/raw/6200066f781a5773d46dad055c160a8446131c6e/10.html)
- [Custom human column ](http://rawgit.com/netmilk/c697c9aacda05de0f1a1/raw/6c44ed735ccc8fee44ac6fddd776f0caf4699720/9.html)
- [Another Custom machine column](http://rawgit.com/netmilk/e7b65b7377dd1a9ee0a3/raw/05135483d8699333677750f8189e63f579f17ae3/12.html)
@netmilk
netmilk / apiary.apib
Created February 19, 2016 14:39
Type Instance using MSON Inheritance and Fixed Type Attribute
# My API
## GET /message/{id}
+ Response 404 (application/json)
+ Attributes (Not Found)
## Data Structures
### Error (object)