diff --git a/ngsplanner_seed.sql b/ngsplanner_seed.sql index 0f94738..0b9985c 100644 --- a/ngsplanner_seed.sql +++ b/ngsplanner_seed.sql @@ -201,6 +201,8 @@ insert into skill_data(skill_id,name,level,variance,mel_dmg,rng_dmg,tec_dmg,crit insert into skill_data(skill_id,name,level,variance,mel_dmg,rng_dmg,tec_dmg,crit_rate,crit_dmg,pp_cost_reduction,active_pp_recovery,natural_pp_recovery,dmg_res,popularity,editors_choice) values((select id from skill where name='Fixa Termina' limit 1),'Fixa Termina Lv.3',3,0,0,0,0,0,1.10,0,0,0,0,0,0); +insert into element(name) + values('None'); insert into element(name) values('Fire'); insert into element(name) diff --git a/server.js b/server.js index 43ce955..8e49ff3 100644 --- a/server.js +++ b/server.js @@ -175,14 +175,14 @@ const ENDPOINTDATA=[ }, { endpoint:"augment", - requiredfields:["augment_type_id","name"], - optionalfields:["variance","hp","pp","mel_dmg","rng_dmg","tec_dmg","crit_rate","crit_dmg","pp_cost_reduction","active_pp_recovery","natural_pp_recovery","dmg_res","affix_success_rate","all_down_res","burn_res","freeze_res","blind_res","shock_res","panic_res","poison_res","battle_power_value","pb_gauge_build","popularity","editors_choice"], + requiredfields:["augment_type_id","name","element_id"], + optionalfields:["variance","hp","pp","mel_dmg","rng_dmg","tec_dmg","crit_rate","crit_dmg","pp_cost_reduction","active_pp_recovery","natural_pp_recovery","dmg_res","affix_success_rate","all_down_res","burn_res","freeze_res","blind_res","shock_res","panic_res","poison_res","battle_power_value","pb_gauge_build","popularity","editors_choice","icon"], excludedfields:[] //Fields to not output in GET. }, { endpoint:"augment_type", requiredfields:["name"], - optionalfields:["icon"], + optionalfields:[], excludedfields:[] //Fields to not output in GET. }, { @@ -232,6 +232,12 @@ const ENDPOINTDATA=[ requiredfields:["name","data"], optionalfields:[], excludedfields:[] //Fields to not output in GET. + }, + { + endpoint:"element", + requiredfields:["name"], + optionalfields:[], + excludedfields:[] //Fields to not output in GET. } ] diff --git a/server_test.js b/server_test.js index ca96eff..b3e789d 100644 --- a/server_test.js +++ b/server_test.js @@ -129,14 +129,14 @@ const ENDPOINTDATA=[ }, { endpoint:"augment", - requiredfields:["augment_type_id","name"], - optionalfields:["variance","hp","pp","mel_dmg","rng_dmg","tec_dmg","crit_rate","crit_dmg","pp_cost_reduction","active_pp_recovery","natural_pp_recovery","dmg_res","affix_success_rate","all_down_res","burn_res","freeze_res","blind_res","shock_res","panic_res","poison_res","battle_power_value","pb_gauge_build","popularity","editors_choice"], + requiredfields:["augment_type_id","name","element_id"], + optionalfields:["variance","hp","pp","mel_dmg","rng_dmg","tec_dmg","crit_rate","crit_dmg","pp_cost_reduction","active_pp_recovery","natural_pp_recovery","dmg_res","affix_success_rate","all_down_res","burn_res","freeze_res","blind_res","shock_res","panic_res","poison_res","battle_power_value","pb_gauge_build","popularity","editors_choice","icon"], excludedfields:[] //Fields to not output in GET. }, { endpoint:"augment_type", requiredfields:["name"], - optionalfields:["icon"], + optionalfields:[], excludedfields:[] //Fields to not output in GET. }, { @@ -186,6 +186,12 @@ const ENDPOINTDATA=[ requiredfields:["name","data"], optionalfields:[], excludedfields:[] //Fields to not output in GET. + }, + { + endpoint:"element", + requiredfields:["name"], + optionalfields:[], + excludedfields:[] //Fields to not output in GET. } ]