added a model for api constants

to fix a bug on edit page