added a model for api constants

to fix a bug on edit page
Merge pull request #88 from Useful-Innovation/johans-fixes

added a model for api constants