EvAlex
EvAlex

Reputation: 2938

How to provide mock data for Apiary Mock Server?

apiary service provides Mock Server, that is generated based on API description written either in API Blueprint or Swagger syntax.

In my API description I have an action returning collection of data. This collection is large, so there is filtering and pagination over it. Apiary gives me Mock Server. But this Mock Server returns collection with only 1 result for that action.

The question is how do I provide more data for the Mock Server? The idea is to develop frontend application without real server until it's ready.

Upvotes: 1

Views: 1181

Answers (1)

Vincenzo
Vincenzo

Reputation: 1559

Actually the only data that the Apiary Mock Server can return, it's exclusively the one provided into the API description document.

However, you have complete freedom around the shape, size and format of the data, so it should be perfectly possible to return huge amounts of data as well with paginations and other things. You might want to elaborate more.

Upvotes: 2

Related Questions