REST API

Showing 1-8 of 8 results
EngineeringIcon ChevronBack-end

gRPC vs. REST: Getting Started With the Best API Protocol

By Laszlo Gyori

gRPC, REST’s up-and-coming competitor, approaches synchronous communication from another angle, offering protocol buffers and typed contracts. What does that mean for your project?

9 minute readContinue Reading
EngineeringIcon ChevronData Science and Databases

Serve Map Clusters 50x Faster Using Smarter Caching

By Florian Pfisterer

Serving map clusters to a mobile app can cause a significant performance bottleneck. Fortunately, it's a problem that can be solved with this caching strategy.

8 minute readContinue Reading
EngineeringIcon ChevronBack-end

Using Express.js Routes for Promise-based Error Handling

By Vitaly Senko

Maintainable Express.js code after scaling means making common code more feature-rich while reducing boilerplate. Find out how to enable promise-based route code and centralize both error handling and normal-results handling in Express.js apps.

8 minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 3: MongoDB, Authentication, and Automated Tests

By Marcos Henrique da Silva

Our Express.js REST API series ends with a bang! Learn how to add a Dockerized MongoDB instance, Mongoose, JWT authentication, user permissions, and automated testing with Mocha, Chai, and SuperTest.

25+ minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 2: Models, Middleware, and Services

By Marcos Henrique da Silva

The Express.js REST API journey continues! Move from models to full DAOs and DTOs, validate requests with middleware, separate services from controllers, and prepare for a real database.

17 minute readContinue Reading
EngineeringIcon ChevronBack-end

Building a Node.js/TypeScript REST API, Part 1: Express.js

By Marcos Henrique da Silva

Learn practical TypeScript patterns with interfaces and extended classes. Avoid messy console.log() statements with Winston and the Node.js debug module. Create an Express.js-powered REST API back end from scratch!

12 minute readContinue Reading
EngineeringIcon ChevronBack-end

Creating a Secure REST API in Node.js

By Marcos Henrique da Silva

As patterns go, REST APIs are so useful and ubiquitous that every web developer, regardless of language or platform, should know how to build them. In this article, Toptal JavaScript Developer Marcos Henrique da Silva shows how to create a simple and secure REST API for user management on Node.js.

13 minute readContinue Reading
EngineeringIcon ChevronBack-end

Creating Your First GraphQL API

By Ioram Gordadze

GraphQL is a domain-specific language for data query and manipulation by Facebook. It is meant to replace the de facto REST standard in API creation. In this article, Toptal Freelance GraphQL Developer Ioram Gordadze creates a GraphQL API from scratch, summarizing problems new GraphQL developers face. He also teaches us to rethink the standard methods used in REST APIs in a more GraphQL-friendly manner.

16 minute readContinue Reading

Join the Toptal® community.