TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Testing REST services with javascript

5 点作者 alexanderb超过 14 年前
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

wccrawford超过 14 年前
<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.