Skip to Main Content
Advanced TypeScript Programming Projects
book

Advanced TypeScript Programming Projects

by Peter O'Hanlon
July 2019
Intermediate to advanced content levelIntermediate to advanced
416 pages
10h 6m
English
Packt Publishing
Content preview from Advanced TypeScript Programming Projects

Designing our REST API using Swagger

When developing REST-driven applications, I find it really useful to use the facilities of Swagger (https://swagger.io). Swagger has many features that make it the go-to tool when we want to do things such as creating API documentation, creating code for APIs, and testing APIs.

We're going to use the Swagger UI to prototype the ability to retrieve a list of people. From this, we can generate documentation to go along with our API. While we could generate the code from this, we are going to use the tooling that's available to see what the shape of our final REST call will be, which we will use to roll our own implementation using the data model we created previously. The reason I like to do this is twofold. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn TypeScript 3 by Building Web Applications

Learn TypeScript 3 by Building Web Applications

Sebastien Dubois, Alexis Georges

Publisher Resources

ISBN: 9781789133042Supplemental Content