Testing your APIs

188 views
Skip to first unread message

Kévin Gomez

unread,
Jul 10, 2014, 3:08:29 PM7/10/14
to resting-wi...@googlegroups.com
How do you test the APIs you build?

For the project I'm currently working on, I had to do a complete rewrite of an API (and a quite old one). To easily ensure the compatibility between the new API and the old one I used Behat to write "tests" that can be executed against both versions.
I used Behat 3 with a slightly customized version of the Behat/WebApiExtension [1]. The main enhancement I did to this extension was a - quick'n'dirty - integration of the coduo/php-matcher [2] library. It allows me to write cleaner/smaller scenarii and test only the parts of the response that I'm interested in.

So, what tools/methods do you use to test your APIs?

[1] https://github.com/Behat/WebApiExtension
[2] https://github.com/coduo/php-matcher

Norbert Orzechowicz

unread,
Jul 12, 2014, 3:10:47 PM7/12/14
to resting-wi...@googlegroups.com
Hi Kévin!
I think that http://github.com/jakzal/RestExtension might be interesting for you. It integrate php-matcher with behat in extension.

Di majo

unread,
May 8, 2024, 12:27:21 PMMay 8
to RESTing with Symfony
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638

Reply all
Reply to author
Forward
0 new messages