Is there a tool that allows me to use a single dataset to mock and test a REST API? -


i working on testing project independent teams providing , consuming rest api. api consumer teams need mocking tool simulate api responses testing can isolate api provider. api provider team needs testing tool execute integration tests against rest service.

is there tool both single dataset? limited set of requests, tool should able return known response. because has dataset of request/response pairs should able execute requests against real service , match/diff response well.

i familiar tools 1 or other, i'd maintain single dataset ensure integration tests , mock synchronized. have experience such tool?

looks ecosystem around api blueprint you.

api blueprint work call "dataset". it's http api description language, allows write down requests , responses in form of text file. it's machine-readable, works contract.

apiary consumes api blueprint file , creates rendered api documentation , mock server - returns described sample responses if obtains request resembles 1 of in description. use mock server "mocking tool simulate api responses testing".

dredd test framework, takes api blueprint , address of live api server, , goes request request , tests implementation. in words, "testing tool execute integration tests against rest service". compares obtained responses described in api blueprint file , gives validation results (passed / error / what's different). "executes requests against real service , match/diff response well".

disclaimer: @ time of writing post, work apiary , i'm taking on dredd maintainer, i'm biased. competing api description formats exist, @ moment offer of tools around them incomplete fulfill needs described them.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -