Inicio
Explorar
Enviar búsqueda
Cargar
Iniciar sesión
Registrarse
Publicidad
IRJET- Rest API for E-Commerce Site
Denunciar
IRJET Journal
Seguir
Fast Track Publications
10 de May de 2019
•
0 recomendaciones
0 recomendaciones
×
Sé el primero en que te guste
ver más
•
25 vistas
vistas
×
Total de vistas
0
En Slideshare
0
De embebidos
0
Número de embebidos
0
Próximo SlideShare
Web Programming
Cargando en ... 3
1
de
4
Top clipped slide
IRJET- Rest API for E-Commerce Site
10 de May de 2019
•
0 recomendaciones
0 recomendaciones
×
Sé el primero en que te guste
ver más
•
25 vistas
vistas
×
Total de vistas
0
En Slideshare
0
De embebidos
0
Número de embebidos
0
Descargar ahora
Descargar para leer sin conexión
Denunciar
Ingeniería
https://www.irjet.net/archives/V6/i2/IRJET-V6I2335.pdf
IRJET Journal
Seguir
Fast Track Publications
Publicidad
Publicidad
Publicidad
Recomendados
Web Programming
VijayapriyaP1
53 vistas
•
36 diapositivas
Rest API Automation with REST Assured
TO THE NEW Pvt. Ltd.
226 vistas
•
22 diapositivas
ReST (Representational State Transfer) Explained
Dhananjay Nene
21.9K vistas
•
192 diapositivas
ReSTful API Final
Claudine Bruyns
205 vistas
•
10 diapositivas
Representational State Transfer
Alexei Skachykhin
1.7K vistas
•
61 diapositivas
Representational state transfer (rest) architectural style1.1
Vinod Wilson
363 vistas
•
229 diapositivas
Más contenido relacionado
Presentaciones para ti
(20)
Application layer assignments
Isaac Akingbala
•
179 vistas
Microsoft Exchange Technology Overview
Mike Pruett
•
4.4K vistas
REST - Representational State Transfer
Peter R. Egli
•
10.7K vistas
Web Server Technologies I: HTTP & Getting Started
Port80 Software
•
3.1K vistas
Ajp notes-chapter-06
Ankit Dubey
•
42 vistas
Marata
Cecille Marata
•
262 vistas
ESM_ServiceLayer_DevGuide_1.0.pdf
Protect724v2
•
250 vistas
Websphere interview Questions
gummadi1
•
118.6K vistas
SERVER SIDE PROGRAMMING
Prabu U
•
1.3K vistas
About HTTP and REST
Maggie Georgieva
•
856 vistas
Restful Fundamentals
Suresh Madhra
•
170 vistas
LDAP Injection & Blind LDAP Injection in Web Applications
Chema Alonso
•
14K vistas
SAP integration sample payloads for Azure Logic Apps
David Burg
•
2.2K vistas
Introduction to webservices
Gagandeep Singh
•
2K vistas
Webbasics
patinijava
•
696 vistas
Rest http basics
Suresh Madhra
•
173 vistas
Rest Webservice
Viyaan Jhiingade
•
367 vistas
Frequently Used Terms Related to cPanel
HTS Hosting
•
30 vistas
A Guide for Communication with Distributed Web Applications in Mobile Networks
Agastheswar Suribhatla
•
157 vistas
HTTP Request and Response Structure
BhagyashreeGajera1
•
919 vistas
Similar a IRJET- Rest API for E-Commerce Site
(20)
Secc tutorials development and deployment of rest web services in java_v2.0
Aravindharamanan S
•
121 vistas
Enterprise Software Architecture
rahmed_sct
•
1.7K vistas
REST & RESTful APIs: The State of Confusion
Glenn Antoine
•
4.2K vistas
REST != WebAPI
Dan (Danut) Prisacaru
•
617 vistas
REST based API
ijtsrd
•
17 vistas
REST Introduction.ppt
KGSCSEPSGCT
•
11 vistas
Building Killer RESTful APIs with NodeJs
Srdjan Strbanovic
•
9.6K vistas
Rest web service
Hamid Ghorbani
•
467 vistas
Unit 3-SOA Technologies
ssuser3a47cb
•
67 vistas
Cc unit 2 updated
Dr. Radhey Shyam
•
22 vistas
RESTful applications: The why and how by Maikel Mardjan
Jexia
•
486 vistas
Mini-Training: Let's have a rest
Betclic Everest Group Tech Team
•
2.3K vistas
REST & SOAP.pptx
ZawLwinTun2
•
8 vistas
Rest api best practices – comprehensive handbook
Katy Slemon
•
76 vistas
Unit 2
Ravi Kumar
•
96 vistas
IP based standards for IoT
Michael Koster
•
3.9K vistas
As044285288
IJERA Editor
•
200 vistas
Performance Evaluation of Web Services In Linux On Multicore
CSCJournals
•
100 vistas
Efficient Spring Data REST Development
Catalin Tudose
•
96 vistas
R01765113122
IOSR Journals
•
329 vistas
Publicidad
Más de IRJET Journal
(20)
AN INVESTIGATION ON THE EFFICACY OF MARBLE DUST POWDER FOR STRENGTHENING THE ...
IRJET Journal
•
26 vistas
A Survey on Person Detection for Social Distancing and Safety Violation Alert...
IRJET Journal
•
8 vistas
Thermal Analysis and Design Optimization of Solar Chimney using CFD
IRJET Journal
•
7 vistas
Common Skin Disease Diagnosis and Prediction: A Review
IRJET Journal
•
41 vistas
A STUDY ON TWITTER SENTIMENT ANALYSIS USING DEEP LEARNING
IRJET Journal
•
22 vistas
Band structure of metallic single-walled carbon nanotubes
IRJET Journal
•
5 vistas
IoT Based Assistive Glove for Visually Impaired People
IRJET Journal
•
10 vistas
A SUPERVISED MACHINE LEARNING APPROACH USING K-NEAREST NEIGHBOR ALGORITHM TO ...
IRJET Journal
•
3 vistas
An Overview of Traffic Accident Detection System using IoT
IRJET Journal
•
5 vistas
Artificial Neural Network: A brief study
IRJET Journal
•
4 vistas
Review Paper on Performance Analysis of LPG Refrigerator
IRJET Journal
•
6 vistas
WOLBACHIA PIPIENTIS AND VARROA DESTRUCTOR MITE INFESTATION RATES OF NATIVE VE...
IRJET Journal
•
5 vistas
Survey on Automatic Kidney Lesion Detection using Deep Learning
IRJET Journal
•
3 vistas
A Review on Safety Management System in School Bus
IRJET Journal
•
10 vistas
Design and Validation of a Light Vehicle Tubular Space Frame Chassis
IRJET Journal
•
7 vistas
SMART BLIND STICK USING VOICE MODULE
IRJET Journal
•
12 vistas
AUTOMATIC HYPODERMIC INFUSION REGULATOR
IRJET Journal
•
7 vistas
Mobile Application of Pet Adoption System
IRJET Journal
•
11 vistas
Literature Survey on “Crowdfunding Using Blockchain”
IRJET Journal
•
8 vistas
Pricing Optimization using Machine Learning
IRJET Journal
•
8 vistas
Último
(20)
Chapter-2 Locator of Jigs.pptx
SantoshPatil187814
•
0 vistas
06-DistanceProtection.ppt
ramkumarkirubaharan1
•
0 vistas
EE 8304 Lecture 7.2.pdf
CeciliaBarantanda
•
0 vistas
hydro.pptx
HarshadaWagh7
•
0 vistas
Requirement engineering.pptx
keerthanakarthi
•
0 vistas
MLE versus Bayesian Estimation.pptx
JISHARANIGS
•
0 vistas
CRUSHER-146.pdf
rahulsai65
•
0 vistas
Chapter 4.pptx
MamushLeta
•
0 vistas
THE PRESSURE SIGNAL CALIBRATION TECHNOLOGY OF THE COMPREHENSIVE TEST SYSTEM
ieijjournal
•
0 vistas
RELATION-SLIDESHARE.pdf
gunduanil17
•
0 vistas
23609556-Handbook-of-Machine-Foundations-Srinivasulu-Vaidyanathan.pdf
RajarshiBose8
•
0 vistas
chapter 5.pptx
MamushLeta
•
0 vistas
Associates.pptx
Ashok Banagar
•
0 vistas
English_Grammar_in_Use_-_Fifth_Edition (learnenglishteam.com).pdf
Alemu Tadesse
•
0 vistas
Lec#1, Internal Loadings; Stress updated-student.pdf
KylaMontoya
•
0 vistas
ASD vs LRFD_ForWebSite.ppt
ssuser523d4d
•
0 vistas
Chapter-3 Clamping of Jigs.pptx
SantoshPatil187814
•
0 vistas
The Intellectual Capital and their Influence on the Financial Performance of ...
IJAEMSJORNAL
•
0 vistas
澳洲科廷大学毕业证文凭成绩单制作指南
abecue
•
0 vistas
Chapter-1 Introduction of Jigs.pptx
SantoshPatil187814
•
0 vistas
Publicidad
IRJET- Rest API for E-Commerce Site
International Research Journal
of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 02 | Feb 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1711 REST API for E-Commerce Site Sneha Jadhav1, Anjali Singh2, Apurva Upadhyay3, Smita Avhad4, Prof. Pravin Hole5 1,2,3,4B.E. Computer Engineering, Dept. of Computer Engineering, Terna Engineering College, Maharashtra, India 5Professor, Dept. of Computer Engineering, Terna Engineering College, Maharashtra, India -----------------------------------------------------------------------***-------------------------------------------------------------------- Abstract - In today’s world with the help of ecommerce web design, you get an opportunity to have your products and services available to the customers 24 hours. It is a good exposure to your business. Most of the people prefer to shop online due to shortage of time, you can easily make more revenue and more profit. With the help of an e-commerce website people can select and buy desired products anytime anywhere. Payments can be done easily through credit cards or other payment options available in website. REST (Representational State Transfer) [1], an architectural style for web services, is getting more and more popular in recent years. Many vendors have opened the doors of their services to developers, providing them with restful accesses to different web services. A traditional e-Commerce website is growing in popularity. Large amount of product selection, competitive pricing and excellent customer care were drive more customers to the site. Key Words: REST, e-Commerce 1. INTRODUCTION REST (Representational State Transfer) is architectural style for designing loosely coupled web services. It is mainly used to develop lightweight, fast, scalable and easy to maintain web services that often use HTTP as means of communication. REST [2] is not connected to any particular platform or technology. REST defines Web as a distributed hypermedia application RESTful applications use HTTP request to post data (cre- ate/update), read data (making queries) and delete data. Therefore, REST uses HTTP for all four CRUD (Cre- ate/Read/Update/Delete). The main concepts used in REST API are resources, verb and representation. • Resources – Resources are fundamental interconnected elements on web platform. Every resource has a unique identifier known as URI (Universal Resource Identifier). • Verbs are HTTP actions like GET, POST, PUT and DELETE. • Representation determines a way to showcase these re-sources to clients. REST supports all formats like JSON, XML or any other format without any restrictions. The different components of REST API are: • To support Routes for forwarding the supported requests (and any information encoded in request URLs) to the appropriate controller functions. • Controller functions allow to get the requested data from the models, create an HTML page displaying the data, and return it to the user to view in the browser. Views is used by the controllers to render the data. 1.1 The MEAN Stack A. Node.js: Node.js is an open source server environment and involves using JavaScript on the server. It uses asynchronous programming[3]. It can generate dynamic page content and runs single threaded. Features of Node.js: 1) Asynchronous and Event Driven: It is non- blocking 2) Very Fast 3) Single Threaded but Highly Scalable: Same program can provide many services to a much larger number of requests. 4) No Buffering: Never buffers any data and simply output the data in chunks. 5) License: Released under the MIT license. B. Express.js: It builds on the underlying capability of Node. Allows HTTP operations such as GET and POST. It facilitates a simplified solution. Express application always uses a call back function whose parameters are request and response objects. C. Mongo DB: It is a high performance NoSQL database [3]. It is built around the JSON data format. It provides dynamic schema. A record in MongoDB is a document, which is actually a data structure composed of field and value pairs. MongoDB documents are almost similar to JSON objects. The values of fields may include other documents, arrays, and combination of both.
International Research Journal
of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 02 | Feb 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1712 D. Angular.js: It is an open source web application frame- work. For maximizing the performance it can be used with Yeoman and Bootstrap. It is a client-server framework which works for MVC. AngularJS expressions are always written inside double braces: {{expression}}. 1.2 Creating a REST API using PHP We can actually create a simple REST API in PHP and call them in JavaScript using various technologies. For example, using HttpRequest, jQuery AJAX and AngularJS AJAX. Data is exchanged in JSON (JavaScript Object Notation) format. MySQL is the most used database system in the PHP world. You can represent the database information in JSON format by using PHP. We can also provide security to the data by using various algorithms such as SHA. 2. Security All the database data need to be safe. Security and au- thentication is necessary for a good ecommerce site. HTTP carries some inherited authentication mechanisms and it allows Basic, Digest, and Custom Authentication. For high security, one should implement HMAC or SHA. 3. MODEL VIEW CONTROLLER MVC (Model View Controller) [4] is pretty straightforward. After creating a website, the following steps are followed by MVC: 1) Client sends REST keyword request to the server. 2) Server matches and reacts to the requested URL to the controller action. 3) Returns the result back to the client for processing in JSON format. The generated JSON in the fourth step can be thought of as a ‘view’. It is a representation of state, suitable for crossing process boundaries. MVC is a way of structuring server side code. REST is concerned with the communication of clients and servers. 4. Architectural Constraint A. Uniform interface: Decide interface for resources inside the system which are exposed to API consumers. B. Client–server: Client application and server application MUST be able to evolve separately without any dependency on each other. C. Stateless: Make all client-server interaction stateless. Server will not store any data about the latest HTTP request client made. It will treat each and every request fresh. There should be No session, no history. D. Caching of data and responses is of utmost important. It brings performance improvement for client side, and better scope for scalability for a server because the load has reduced. E. Layered system: It allows you to use a layered system architecture. F. Code on demand (optional): You will be sending the static representations of resources in form of XML or JSON but when you need to, you are free to return executable code to support a specific part of your application. 5. Soap Vs REST REST[5] operates through a consistent interface to access named resources. It’s most commonly used when you are exposing a public API over the Internet. SOAP exposes components of application logic as services. It operates through various interfaces. REST accesses data and SOAP performs operations through a more standardized set of messaging patterns. SOAP was created by Microsoft, and it’s been a lot longer than REST. REST helps to access web services in a much simpler way than possible with SOAP by using HTTP. REST allows more variety of data formats. REST offers better support for clients. REST provides efficient performance. REST is used most often for major services such as Yahoo, Amazon, etc. REST is faster and uses less bandwidth. 6. Scope of REST API With can develop modifiable and system to accommodate growing business and need of people. The system built will be resistant to failure. Useful in cloud application.
International Research Journal
of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 02 | Feb 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1713 Stateless components can be freely redeployed if something fail [6]. 7. Architecture of REST API Architecture considered RESTful or REST-style is characterized by: 1) State and functionality are divided into distributed resources. 2) Each and every resource is actually uniquely addressable using a uniform and of course minimal set of commands (typically using HTTP commands of GET, POST, PUT, or DELETE over the Internet) 3) Protocol is client/server, layered, and supports caching. 8. Advantages of REST a. REST is any interface between systems using HTTP to obtain data and generate various operations on the data in all possible formats, such as XML and JSON. b. Popular alternative to other standard data exchange protocols such as SOAP. c. Uses a simpler data-processing solution. 9. REST API features 1. Derives functionality for retrieving files from File fields in (RDOs) [7]. 2. Supports create, read, update, delete, and query working. 3. Provides secure access to resources using flexible authentication methods, such as HTTPS. 4. It is Language independent made possible by adherence to RESTful architectural standards, providing you with the option to choose a programming language based on application requirements. 5. It includes implementation of standard HTTP methods and JSON resource representations. 10. Restful Concept REST API follows standard architectural principles defined by Representational State Transfer [9]. It supports all these key architectural concepts: 1. Stateless – The REST service doesn’t use login sessions or store other state information on the server as well. 2. Communicates using HTTP –Uses common HTTP methods: a. GET: reads data b. POST: creates resources c. PUT: updates resources d. DELETE: removes resources 3. Uses HTTP status codes: Status codes represent many results of operations that you can perform against the REST service. 4. Manipulation of resources: Rest API service represents the objects. A unique URL identifies each resource. Other entities are not generally identified as objects are also represented as resources. 5. Providing a hypermedia-driven API – The REST API helps to return responses that include links to resources available in Relativity. Considering the example: response for a workspace query returns a list of each matching workspaces. It helps in representing each workspace in a simplified format that contains a link to further details about the resource. 11. Unique implementation details REST API [10] accommodates the data model for processing and scaling, while this also supports common RESTful principles. Consuming the REST API [11], consider the following requirements that are unique: 1. Using paged lists of data: REST API requires clients to search and page through all search results. Initially make a request, the number of resources that will be returned can’t be determined immediately, so all lists of data need to be paged to support large result sets. 2. Specify additional data fields to return – REST API returns the only default set of fields for a resource unless
International Research Journal
of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 06 Issue: 02 | Feb 2019 www.irjet.net p-ISSN: 2395-0072 © 2019, IRJET | Impact Factor value: 7.211 | ISO 9001:2008 Certified Journal | Page 1714 and until you provide a query string that specifies additional fields or all fields of the specific object. You can improve performance by retrieving only default. 1. Use queries to help for filtering data – You are enabled to filter a list of resources by performing a query, which is a request and that uses the POST method and contains conditions specified specially in JSON representation. Then, REST API returns the search result resource, you can even page through the list of resources returned. You usually can’t use a query string for filtering a collection of resources. 2. Providing required headers – You should include all the authentication credentials and an empty CSRF header specially in every request. The following diagram defines the interconnections between REST & Services APIs. 12. Authentication of REST API 1. Relativity REST API provides you the ability for choosing an authentication method and that best fits your environment including application requirements. For providing secure communication between a client & the Relativity service endpoint, it supports basic authentication over HTTPS. 2. Authentication header is usually required for all calls to the REST endpoint. Authorization field in the HTTP header is better used to pass user credentials. 3. REST API uses JSON as a firm format for representing DTOs returned by HTTP methods [12] from the Services API. A JSON representation includes properties that describe a resource or collection of resources, a self link to the resource (specified in the __Location property), and links for pagination as required. 4. Several HTTP operations on a single resource return its JSON representation. Whenever multiple objects are returned by an HTTP operation the JSON representation includes Results property along with an array of resources. 5. Services API always supports the development of customized end-user applications. It usually simplifies the development process and provides object classes and other data structures that are considered as the building blocks for custom applications. 13. CONCLUSION RESTful engine is mainly used to develop lightweight, fast, scalable and easy to maintain web services that often use http as means of communication. We have seen implementation of RESTful [13] web services by developing an Ecommerce site. Internet is the most popular platform for business, many companies are setting their businesses online and Ecommerce is the most popular among them. Therefore, the system is developed to build a scalable REST API for Ecommerce to serve any frontend client. References [1]https://www.techiediaries.com/php-rest-api/ [2]https://www.w3schools.com/nodejs/nodejs_intro.asp [3]https://docs.mongodb.com/manual/introduction/ [4]https://www.c-sharpcorner.com/blogs/how-to-make- rest-api-in-net-framework-mvc [5]https://softwareengineering.stackexchange.com/quest ions/324730/mvc-and-restful-api-service [6]https://www.tutorialspoint.com/nodejs/nodejs_introd uction.htm [7]https://restfulapi.net/rest-architectural-constraints/ [8]https://dzone.com/articles/differences-in- performance-apis-amp-more [9]https://www.google.com/search?rlz=1C1CHZL_enIN75 5IN755&biw=1366&bih=608&tbm=isch&sa=1&ei=Az1HX LvkBIL28QWLubaQBw&q=REST+api+concepts+using+mo ngo+DB&oq=REST+api+concepts+using+mongo+DB&gs_l =img.3...1449973.1455834..1456261...0.0..0.286.2950.0j7j 8......0....1..gws-wiz- img.......0i24.5PcJmKI3fdE#imgrc=1W2zKqYPBeTErM: [10]https://www.google.com/search?q=architecture+of+r est+api&rlz=1C1CHZL_enIN755IN755&source=lnms&tbm =isch&sa=X&ved=0ahUKEwjzh8HkyoHgAhXKuY8KHb2qA JIQ_AUIDigB&biw=1366&bih=608#imgrc=d1IU9HsnHv8H fM: [11] Research paper: On Composition of SOAP based and RESTful Services. 2016 IEEE 6th International Conference on advance Computing. [12]Research paper: Using Mean Stack to implement a RESTful Service for an Internet of things application. [13]Infosys white paper: Best practices for building restful web services.
Publicidad