禁断の魔導書≪グリモワール≫に記されし我が同胞達の魂の輝きを今こそ「瞳」を持つ者へ解放せん!
yagi2 / imas_api Goto Github PK
View Code? Open in Web Editor NEWアイマスの情報を叩けば出るAPI
License: MIT License
アイマスの情報を叩けば出るAPI
License: MIT License
カラムの定義変えるしか無いかな……
多分雪歩に対してのあずみんとゆりしーっていうケースだけだと思うんだけど。
そのまま
imas cv hoge
でその人のブログとかTwitterアカウントをほいっって投げれる奴あれば便利そうだから欲しい。
Wikipedia記事も?
そのまま
api.yagi2.com に繋げたらまずそもそもFuelPHPのWelcomeページじゃなくてちゃんとしたページにしたい。
あとそれぞれのリストをWebブラウザでリスト表示させたい。
想定されるパラメータ以外のパラメータを受け取った場合はエラーを吐くようにする。
そのまま
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=22
正しい
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=22&is_idol=1
正しい
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=22&is_idol=0
正しい
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=21
正しい
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=21&is_idol=1
正しくない
http://api.yagi2.com/imas/character/list?ch_birth_month=5&ch_birth_day=21&is_idol=0
正しくない
1つ目は5月22日生まれの結果を返す=双海姉妹が相当なので正しい
2つ目は5月22日生まれでアイドルのキャラクターを返す=双海姉妹が相当なので正しい
3つ目は5月22日生まれでアイドルでないキャラクターを返す=誰も居ないので正しい
4つ目は5月21日生まれの結果を返す=誰も居ないので正しい
5つ目は5月21日生まれでアイドルのキャラクターを返す=誰も居ないはずだが,天海春香〜四条貴音までの誕生日関係ないアイドルが返ってきている
6つ目は5月21日生まれでアイドルでないキャラクターを返す=誰も居ないはずだが,社長初め小鳥さんまでのアイドルでないキャラクターが返ってきている
is_idol周りが可笑しい……?
他にも試してないだけで可笑しいのが存在する可能性大。
原因不明(要デバッグ)
いろんな部分を削ってAPIのみにしたい。
welcomeページとか消して404もできればjsonとかで404返ってくると嬉しい。
楽曲とかイベントとか?
character_name -> c_name 等々
長いと呼び出し後のJSON処理がめんどくさい。
んだけど。
辛いけどSQLファイルを書いてキャラ情報を追加する。
{
result: {
code: xxx,
message: xxx,
}
input: {
hoge: {
piyo: xxx,
}
result: 0
}
みたいなやつのresultとかそういう部分を作るのをメソッドとして分離する。
そのまま。
その通り
これはとあるサーバ上で動いてて
サーバ以外の場所で編集->github push->TravisCIでテスト->テストが通ったら自分で動いてるサーバへsshしてgit pull
って手順のsshからgit pullまでを自動化したい。
サーバでTravisCIからのhookを受け取ってpull……? できるのかな。
change_databaseブランチの作業が終わってmasterにマージした時点でちゃんとテストを書く。
せっかくブランチを切っているので完成後にマージするだけで動くようにproto_っていうプレフィックスを外す。
そのまま。
でも別にパラメータ指定しない時に返ってこないのは嬉しいかも……?
デバッグ用で全部返して欲しい時を考える。
新しいカラムを作るか,typeにねじ込んでsplitするか。
カラム作ったほうが良さそうだけど,やるなら早めにやらないとめんどくさそう。
そのまま。
765プロでもライブシアターの方とか,アイドルじゃないとか。
そこらへんでkotoriの発言テンプレートを変えたい。
coffeescript触ったこと殆ど無いからcoffeescriptを勉強するところからかな。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.