stub an API from a JSON schema