Page tree
Skip to end of metadata
Go to start of metadata

Mock Server allows certain methods to be used in the expected response field of API Mock. As of now, we are only allowing a single method but in future, we are going to increase this based on user requests:

  1. __timestamp()
    This special method returns an integer which is number of milliseconds from Epoch Time and can be used in Expected response like this:


    The above API mock returns the following response:

    {
    	"timestamp": 1528094202950
    }

 

  • No labels