KZKY memo

自分用メモ.

Swagger 超基本

環境

Ubuntu 14.04

Installation

nodejsが必要

buildする場合
git clone https://github.com/joyent/node.git
cd ${pathto_node}
./configure
make
sudo make install
pre-buildの場合

ここから持ってくる

  • system wide
cd /usr/local && tar --strip-components 1 -xzf \
                    /path/to/node-<version>-<platform>-<arch>.tar.gz

swagger installation

  • install swagger-editor (結構,時間かかる)
git clone https://github.com/swagger-api/swagger-editor.git
cd swagger-editor
npm start
  • 動かない場合
sudo npm install -g bower grunt-cli
npm install
bower install
grunt serve
default url

基本

を見ながら理解していく

RESTfulな設計も可能