Skip to content

Instantly share code, notes, and snippets.

View knightstick's full-sized avatar

Chris Jewell knightstick

View GitHub Profile
@knightstick
knightstick / tasks.json
Last active January 23, 2019 08:58
Base go tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "go test",
"type": "shell",
"command": "go",
"args": ["test", "-v"],
/api/v1/pets:
get:
description: Index all Pets
responses:
200:
description: OK
schema:
title: Pets Index
type: object
required: ["data"]
{
...
"attributes": {
"name": "Bingo",
"favourite-colour": "#0000FF"
}
}
title: Pet
type: object
required: ["id", "type"]
properties:
id:
type: string
type:
type: string
{
"id": "123",
"type": "Pets"
}
schema:
title: Pets Index
type: object
required: ["data"]
schema:
title: Pets Index
type: object
properties:
data:
type: array
items:
title: Pet
type: object
properties:
swagger: '2.0'
info:
version: "1.0.0"
title: JSON API Pet Store
paths:
/api/v1/pets:
get:
description: Index all Pets
swagger: '2.0'
info:
version: "1.0.0"
title: JSON API Pet Store
paths:
/api/v1/pets:
get:
description: Index all Pets
{
...
"data": [
{
"type": "articles",
"id": "1",
...
},
...
{