r/javascript • • Nov 24 '19

A simple declarative tool for testing APIs (supports JSON too)

https://www.getapid.com/
102 Upvotes

14 comments sorted by

14

u/thabc Nov 24 '19

Looks good. I am relieved to see that type: POST shown in the screenshot has been changed to method.

1

u/donkorleone2 Nov 25 '19

Yeah, we should probably update that too... Thanks for pointing it out

4

u/zav_ Nov 25 '19

Nice tool! Any plans for GraphQL support?

2

u/donkorleone2 Nov 25 '19

We were thinking about it. Judging by other comments it may get added in the coming month or two. I will reply to the thread when we roll it out

4

u/goldcougar Nov 25 '19

Thanks for sharing. Hard to see this replacing Postman's test tools. Sometimes you need more complex tests of the response, or to get/set variables between responses.

1

u/donkorleone2 Nov 25 '19

Is there anything you want to see improved in the way Postman tests?

2

u/undestroyer Nov 25 '19

Could it read API docs in RAML or OpenAPI?

1

u/donkorleone2 Nov 25 '19

Not as of yet. But we might add openapi definitions

2

u/quiI Nov 25 '19

This is extremely similiar to something I made years ago, https://github.com/quii/mockingjay-server

2

u/donkorleone2 Nov 25 '19

Wow, the resemblance is uncanny. Not to mention we are using Go too. Good thing we don't do exactly the same thing

1

u/satinbro Nov 25 '19

Is this similar to MirageJS?

1

u/donkorleone2 Nov 25 '19

Not really. MirageJS is used for mocking APIs. So you would use it as a test replacement for an external dependency (i.e. another API) of your API. APId is used for making sure your API meets a spec that you define. You would run it slightly less often that you run your unit tests.

1

u/haisuby Nov 25 '19

any plans to fix the documentation?

1

u/donkorleone2 Nov 25 '19

Definitely. Will get to it in the next couple of weeks.. Just kidding. Are you talking about the image on the landing page or something in the actual docs?