Skip to main content

A Deep Dive into REST API Framework Survey

Page 1

International Research Journal of Engineering and Technology (IRJET)

e-ISSN: 2395-0056

Volume: 10 Issue: 07 | July 2023

p-ISSN: 2395-0072

www.irjet.net

A Deep Dive into REST API Framework Survey R SUNIL1, Dr. SHOBHA G2 1Student, Department of Computer Science and Engineering 2Professor, Department of Computer Science and Engineering

R V COLLEGE OF ENGINEERING, Bengaluru, Karnataka, India -----------------------------------------------------------------------***-----------------------------------------------------------------------Abstract - In Modern Day, Communication between Devices is the key to run a successful business. There are many

frameworks available to implement communication between devices. In this paper we introduce REST API Framework and compare it with other frameworks like SOAP. The attributes of clients, servers, and their connections are constrained by the REST framework, which significantly influences talks between them. This paper provides details of authentication of client application using OAuth 2 and securing REST API using SSL Certificates. REST API is used in multiple industries including medical industry, cloud computing, micro services, websites using information of other websites like comparing hotel prices, Internet of Things and many more. Representational State Transfer (REST) provides more elasticity and is widely used in web services.

Key Words - Representational State Transfer, Application Programming Interface, Hypertext Transfer Protocol, OAuth 2, Secure Sockets Layer, RESTful, Web Services.

1. INTRODUCTION

into collections. Collections are themselves a resource. A resource has data associated with it. In this paper, we introduce constraints on REST API, properties of REST API, key elements of REST API, interaction between client server, Authentication of REST API, Securing REST API using SSL Certificates.

REST is a framework that specifies a set of rules to be followed while designing API's. REST API is a straightforward and flexible method of accessing web services without any processing. REST requires less bandwidth and is more suitable for internet use. It is often preferred to the more reliable Simple Object Access Protocol (SOAP) technology where the latter consumes more bandwidth and highly complex. Also, API calls are not cached in SOAP [1]. It is utilized to obtain or provide data from an online service. The client can perform various operations by utilizing the REST service. The major advantage of REST is that it is easier to document them which can be referenced by developers to write programs [2]. The protocol used for communication between devices in REST framework is Hypertext Transfer Protocol (HTTP) [3]. HTTP is an application layer protocol which can be used for distributed and hypermedia systems.

2. Constraints on REST API Constraints on REST API ensure that the API endpoints and the communication between the client and server are based on REST framework. There are six constraints on REST API which are as follows: A. Statelessness: Server does not store any session data. It means all the necessary information that a server needs to understand with respect to a particular resource has to be contained in the client request. B. Cacheability: When a Server sends a response to the client in its response it should indicate that whether the response can be cached or not and for how much duration the responses can be cached at the client side. This reduces network latency.

The foundational concept of a RESTful API is a resource. Any record that can be called can be as a resource: a report, an image, a time service, a set of different resources, etc. REST uses a uniform resource identifier to locate a specific resource associated with an interaction between components [4]. Resources can have relationships with different resources and certain techniques or actions must be performed between these resources. A resource which exists individually is called a singleton resource. Same type of resources can be grouped

© 2023, IRJET

|

Impact Factor value: 8.226

C. Uniform Interface: There are many different devices like smart phones, laptops, IoT devices, etc. Each of these devices can act as a client. This constraint specifies that any device can interact with the Server through the same uniform interface [5].

|

ISO 9001:2008 Certified Journal

|

Page 851


Turn static files into dynamic content formats.

Create a flipbook