API

Advanced REST API Design

Rest is a data transfer method used in software built on service-oriented architecture. It runs on HTTP and is simpler than other alternatives, and faster because it sends and receives data with minimal content. It enables applications to communicate by carrying XML or JSON data between client and server. Rest lightweight and stateless has increased its use and popularity today. Rest Services are…
Read more
API

13 REST API Interview Questions You Need to Know

The importance and use of web services in today’s software technologies is increasing. Many systems and applications now communicate with each other through web services and exchange data. The most widely used type of web service today is the REST API. There are many…
API

RESTful API Tutorial: How to Upload Files to a Server

File Upload is an application that helps us upload files to the server. With File Upload, it is possible to upload files of the type allowed by the system, such as pictures, excel, pdf, to applications. File Upload control, on the other hand, enables us to perform file upload operations within the criteria we specify within our application. For example, we can load an excel file, read and list the…
Read more
API

Best Practices For Your API Versioning Strategy

While developing the API, there is one reality that we should keep in mind, which is the principle of ‘Change is Inevitable’. Although we are carrying out business-oriented work during the development process, we may need to add more responsibilities to the API…
API

Best Practices for REST API Error Handling

It is highly desirable in APIs to properly handle errors and provide meaningful error messages, as it can help the API client respond to issues correctly. The default behavior tends to return stack traces that are hard to understand and ultimately useless for the API client. Splitting error information into fields also allows the API client to parse it and provide better error messages to the…
Read more
API

Building a REST API with Node and Express

Imagine you already have a working site. Let’s say your site starts to become more popular over time. If you build your site without thinking it will be popular later on, you will start to respond more slowly to requests. Active users will wait for you to reply to the…
API

HTTP Status Codes for REST API

Worse than encountering an error is encountering an “unspecified” error. If you don’t want your REST API to give users a hard time, explain the errors and their reasons clearly. Do not forget to use HTTP status codes while doing this. Standard HTTP status codes will suffice for a general description of almost any error. HTTP status codes (HTTP response codes) are the codes…
Read more