Skip to content

Instantly share code, notes, and snippets.

@owenconti
owenconti / 3511
Last active September 18, 2017 23:08
3511
swagger: '2.0'
info:
version: "1.0.0"
title: Test REST API
basePath: /api
schemes:
- http
consumes:
- application/x-www-form-urlencoded
produces:
swagger: '2.0'
host: localhost
info:
title: Demo
description: Demo
version: 1.0.0
schemes:
- https
consumes:
- application/json
Aliases:
# Quickly get to places
alias go-dev='cd ~/development'
alias go-ice='cd ~/development/ice-workspace/_icesrc2015'
alias go-react='cd ~/development/ice-workspace/_icesrc2015/projects/api-javascript/src/provider.react/'
alias go-model-gen='cd ~/development/ice-workspace/_icesrc2015/projects/utilities-api-model-generator/utility/vagrant-mysql'
alias go-gifs='cd ~/Gifs'
# Vagrant
swagger: '2.0'
info:
title: Test API
version: 1.0.0
paths:
/test:
get:
responses:
200:
0xD8f45327FC49a364Ec6289d0c10Ea27282433727
php artisan reset:database
Dropped and re-created database: grace_sms
Migration table created successfully.
Migrating: 2013_04_09_062329_create_revisions_table
Migrated: 2013_04_09_062329_create_revisions_table
Migrating: 2013_09_12_234559_create_activity_log_table
Migrated: 2013_09_12_234559_create_activity_log_table
Migrating: 2014_08_15_180252_create_meta_table
Migrated: 2014_08_15_180252_create_meta_table
openapi: "3.0.0"
info:
version: 1.0.0
title: Example API
description: A sample API using OpenApi 3.0
contact:
name: ABC
email: [email protected]
{"swagger":"2.0","info":{"description":"Sample API 1.0.6529.19096, powered by API Framework 1.2\n\nRESTful JSON HTTP service providing access to data of `Sample API`.\n\nFind out more about [JSON API specification](http://jsonapi.org/) and [Swagger](http://swagger.io/) ([forum](https://swagger.io/forum/), [discussions](http://swagger.io/irc/)).","version":"1.0.6529.19096","title":"Sample API","termsOfService":"http://company.com/apis/tos","contact":{"email":"[email protected]","name":"Company, Inc.","url":"http://company.com/"},"license":{"name":"Apache License 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"host":"localhost:44342","basePath":"/","schemes":["https"],"tags":[{"name":"agent","externalDocs":{"url":"agent","description":""}}],"paths":{"/api/data/agents":{"post":{"summary":"Create new \"agent\" record","description":"\r\nThis endpoint requires authorization for end-user. ","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"header","name":"authori
{
"label": "PHPUnit - Current file",
"type": "shell",
"command": "./vendor/bin/phpunit",
"args": [
"--filter",
"${fileBasenameNoExtension}"
],
"problemMatcher": []
}
<Select
ref={ ref => this.select = ref }
width={ this.props.width }
value={ this.props.selectedValue }
placeholder={ this.props.placeholder }
options={ this.props.options }
formatResult={ this.props.formatResult }
formatSelection={ this.props.showSelection && this.props.formatSelection }
onSelection={ this.props.onSelection }
queryHandler={ this.props.queryHandler }