Skip to content

Instantly share code, notes, and snippets.

Adam Kliment netmilk

Block or report user

Report or block netmilk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@netmilk
netmilk / zeit-now-env-vars.txt
Created Oct 21, 2018
Zeit Now Default Environment Variables Dump
View zeit-now-env-vars.txt
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
View gist:fbdf549b7e4d9827fffc85c52ab13bb5
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 Sep 16, 2017
REST Full JSON example
View cars_api.md

Cars API

Car [/car{?id}]

{
 "id": "1",
 "url": "/car?id=1",
 "maker": "vw"
}
@netmilk
netmilk / apiary.apib
Created Apr 11, 2017
Fixed-type MSON array minimal example
View apiary.apib
FORMAT: 1A
# Fixed-type Example MSON
## Resource [/resource]
### Action [GET]
+ Response 200 (application/json)
@netmilk
netmilk / apary.apib
Created Apr 7, 2017
Complex MSON enums usage in API blueprint
View apary.apib
FORMAT: 1A
# API with enums
# Resource [/resourc]
## Action [POST]
+ Request (application/json)
+ Attributes
@netmilk
netmilk / embed-environments.apib
Created Nov 23, 2016
Embed environments configuration
View embed-environments.apib
# 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 Mar 7, 2016
MSON Array of arrays of arrays
View apiary.apib
# 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 Mar 3, 2016
Apiary x-summary and x-description Swagger extensions example
View swagger.yml
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 Apr 14, 2016
MSON Inheritance and Reference with an Object in an Array with bad syntax
View apiary.apib
# 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 Feb 19, 2016
Type Instance using MSON Inheritance and Fixed Type Attribute
View apiary.apib
# My API
## GET /message/{id}
+ Response 404 (application/json)
+ Attributes (Not Found)
## Data Structures
### Error (object)
You can’t perform that action at this time.