locked
Mocking to replace api calls RRS feed

  • Question

  • User1034446946 posted

    Hi

    I have a few bits i would like to mock so i can test them when i use npm start, so i can replicate api calls when they haven't been built yet.

    How do i go about it?

    Tuesday, November 5, 2019 1:33 AM

All replies

  • User-474980206 posted

    you plan mocking on the client side or the server side?

    server side, just have the api return a hard coded json object. its similar client side. 

      for client side try:

       http://www.wheresrhys.co.uk/fetch-mock/

    Tuesday, November 5, 2019 4:27 PM