Skip to content

Instantly share code, notes, and snippets.

View ponelat's full-sized avatar

Josh Ponelat ponelat

View GitHub Profile
@ponelat
ponelat / invalid.json
Last active September 28, 2016 04:38
{
"swagger": "2.0",
"info": {
"title": not [ quite valid....
}
}
a[ one # two
{ "fromTheGist": true }
swagger: '2.0'
info:
version: 1.0
title: GitHub API
host: api.github.com
schemes:
- https
paths:
/users/{username}:
get:
@ponelat
ponelat / rules.md
Last active April 4, 2017 11:22
Rules of Longest API name

Rules of longest API name

Hence forth this document shall be known as the rules. It is the source of truth.

The Hub short for SwaggerHub.com

API refers to APIs as defined by the OAS 2.0 specification

Rule 1.

@ponelat
ponelat / getting_started.sh
Last active July 30, 2017 14:41
Garden Routers - First Meetup - ClojureScript
# For brevity, we'll refer to `fournil` as our project name, you can of course update that to anthing ( so long as its consistent ).
# With Leinigen installed ( see https://leiningen.org/ )
# Create a fighweel project ( https://github.com/bhauman/lein-figwheel ), which is a batteries included clojurescript template.
lein new figwheel fournil -- --rum # We used Rum, 'cause its what I know :D
cd fournil
# This will start the figwheel server, which includes hot-reloading of frontend pieces as well as an http server for viewing the page.
lein figwheel # This will Download The Internet TM the first time it runs, to get everything you need. Thereafter it'll just start the server
@ponelat
ponelat / limoncello.yaml
Created August 24, 2017 13:34
valid 3.0.0 spec
openapi: 3.0.0
info:
version: 1.0.0
title: Limoncello 3.0.0
paths:
/limoncello:
get:
summary: Update a limoncello
requestBody:
description: Request type of limoncello
@ponelat
ponelat / fake-domain.yaml
Last active September 28, 2017 10:50
silly fake domain
definitions:
Lol:
type: object
properties:
who:
type: string
example: knew
you:
type: string
example: could do this
openapi: 3.0.0
servers:
- url: http://httpbin.org
info:
version: "1.0.3-oas3"
title: Some Service
description: Description
paths:
/anything:
get: