Updated endpoint_data. Added 'none' element.

master
Nic0Nic0Nii 3 years ago
parent 5d1a71aeb9
commit 32b56ed047
  1. 2
      ngsplanner_seed.sql
  2. 12
      server.js
  3. 12
      server_test.js

@ -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)

@ -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.
}
]

@ -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.
}
]

Loading…
Cancel
Save