Reputation: 229
I am using Faker to seed my data for my mostly read-only REST API. I've looked into API Blueprint for testing the API, however I am confused on how this can be accomplished with inconsistent faker data. It seems you have to define the exact json output for a specified query.
Any tips on working with API Blueprint and Faker?
Upvotes: 0
Views: 159
Reputation: 4481
API blueprint and Dredd for testing isn't possible use Faker directly.
For describe data you can use JSON schema and define type what you are using.
You can use dredd hooks for pairing incoming data with generated payloads. Dredd have to control structure not values.
If you have some blueprint example and code this will helps.
Upvotes: 4