Type safety across REST APIs in TypeScript!
Rest.ts lets you write API contracts that tie together consumers and producers within the type system. Out of the box, Rest.ts gives you the following features:
*It would be possible to generate swagger-style API docs from rest.ts definitions, but this feature has not been created yet. Contributors welcome!
If you are just getting started, read the five minutes quick start guide to get up to speed.
You will find all guides in the wiki.
If you are looking for advanced features, you might want to take a look at the API documentation for the module you are using:
Compatibility between rest.ts and runtypes:
Rest.ts | Runtypes |
---|---|
< 0.6.0 | 2.x.x |
>=0.6.0 | 4.x.x |
This is an open source project maintained for free on a human being's spare time. It can only be as good as its user community is willing to make it.
You may also be interested in RESTyped, which fulfills the same role as Rest.ts, but with a different take on the problem.
See Rest.ts vs RESTyped to chose which one best suits your requirements.
Generated using TypeDoc