Skip to content

Added Base Api Endpoint

Craig Smith requested to merge feature/API_Base into master

What I did

  • Added Basic Api Model endpoint to be used for model api calls

how to test

  • in your code create a Class as follows:
import FetchApi from 'fetch-wrapper'

export class UsersModel extends Api {
  api_url = Site.api_url+'accounts/users';
}
  • You can now use this as UsersModel.get(userId).then...

Merge request reports