#Rest-Api
4 notas · última:
Building a Node.js/TypeScript REST API, Part 2: Models, Middleware, and Services
The article organizes a users REST API into DTOs, DAOs, services, controllers, and middleware, using an in-memory store to show CRUD flow, validation, and route composition.
Turn a REST API into a GraphQL API
The article shows a simple way to wrap one REST endpoint in GraphQL by defining a schema, adding a query, and writing a resolver that fetches from the REST URL.
Design an easy to use and flexible REST API
The article argues that a good REST API starts with an atomic database schema, then maps cleanly to URLs, while separate routes and history tables keep responses flexible and easier to maintain.
Bye bye Postman! Let's share your REST API calls in team, easily!
The post presents REST Client for VS Code as a simple way to version, share, and reuse REST API calls in a single .http file, with environment variables for different setups.
