An aproach to build an API to been consumed. by JavaScript