【aipo】APIサーバを叩くとき

APIサーバを叩くときには認証のためにaccess_tokenを取得しなければならず、client_idを用いなければ発行出来ません。

curl -s  -L0 http://localhost:8080/oauth2/token -d "grant_type=password" -d "username=user1" -d "password=aaaaaa" -d "client_id=hogehoge"

のコマンドで得たaccess_tokenを用いて、APIを叩きます

curl -L0 -X GET http://localhost:8080/v1/aipo/version -H 'Authorization: Bearer access_token'