TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Testing REST services with javascript

5 pointsby alexanderbover 14 years ago
Why should I start from tests? Pretty simple, by implementing tests before you are looking on your service as client<, not as a developer. When I was working to version 1 of my REST API I didn't do any tests, basically because I didn't know how to do them. When I was ready and started implementation of the client code and documentation, I found out major API issues that I had no time to solve. Those issues were related to: design, security, formats and convenience of usage. TDD principles works the same here: clear and simple design through series of tests.

1 comment

wccrawfordover 14 years ago
<a href="http://webcache.googleusercontent.com/search?q=cache:WiicATO9mWMJ:www.beletsky.net/2010/12/testing-rest-services-with-javascript.html+http://www.beletsky.net/2010/12/testing-rest-services-with-javascript.html&#38;cd=1&#38;hl=en&#38;ct=clnk&#38;gl=us" rel="nofollow">http://webcache.googleusercontent.com/search?q=cache:WiicATO...</a><p>Google cache. I was getting a DNS error.