4
@ IJTSRD | Available Online @ www ISSN No: 245 Inte R A Mit Swami Viv ABSTRACT This Research Paper is about Restful APIs. This Paper Presents Descriptio APIS Restful APIs work and ho implemented and why they are used i world. Keywords: Restful APIs, APIs INTRODUCTION Restful APIs and APIs have become an of backend development. Without APIs a lot of security issues in the system. Mobile and Web Development world es Restful APIs and APIs for authentica and Submitting Data. A Good API makes it easy for the deve with, and helps to create really powerfu Design of an API has to be in such a user should not have anything visible i complex structure of the API. The Entire Research Paper explains APIs2) How are they used. 3) What ar technologies to create APIs. 4) W important and must use. RESEARCH ELABORATIONS After doing a lot of research work. I can following elaborations. API - s Application Programming interfaces. AP to have a centralized backend system fo a web application. For E.g.: if a colleg which registers students in its datab college wants to develop a mobile app , students in their database. However t already using a Database for the websi w.ijtsrd.com | Volume – 2 | Issue – 5 | Jul-Aug 56 - 6470 | www.ijtsrd.com | Volum ernational Journal of Trend in Sc Research and Development (IJT International Open Access Journ APIs and Restful APIs thilesh Tarkar 1 , Ameya Parker 2 1 Student, 2 Professor vekanand Institute of Technology (VESIT), Chembur, Mumbai, India API and Rest on about how ow they are in the modern n essential tool , there will be . The Modern ssential rely on ation, Fetching eloper to work ul applications. a way that, the in terms of the 1) What are re the required Why are they n represent the standings for PIs are helpful or a mobile and ge has website base. And the , to register the the college is ite. So they in order to keep using the same application, as well as for implementation can be used to With an API, the Developer front end of the mobile appli the application will be the sam The Developer has to do API display the data, push the data In My Research i also found used for live data updates. W of attendance. Example 1: *The Above Figure shows th A, Class 1 B and Class 2 A updated whenever the attenda live API. 2018 Page: 319 me - 2 | Issue 5 cientific TSRD) nal database for the mobile the website. An API o solve this problem. only has to design the ication. The backend of me as that of its website. I Calls to fetch the data, a and to delete the data. d out that, API are also Where there is a pie chart he attendance of Class 1 A , where the data is ance is taken through a

APIs and Restful APIs

  • Upload
    ijtsrd

  • View
    40

  • Download
    0

Embed Size (px)

DESCRIPTION

This Research Paper is about Restful API and Rest APIs. This Paper Presents Description about how APIS Restful APIs work and how they are implemented and why they are used in the modern world. Mithilesh Tarkar | Ameya Parker "APIs and Restful APIs" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-2 | Issue-5 , August 2018, URL: https://www.ijtsrd.com/papers/ijtsrd15797.pdf Paper URL: http://www.ijtsrd.com/computer-science/database/15797/apis-and-restful-apis/mithilesh-tarkar

Citation preview

Page 1: APIs and Restful APIs

@ IJTSRD | Available Online @ www.ijtsrd.com

ISSN No: 2456

InternationalResearch

APIs and Restful APIsMithilesh Tarkar

Swami Vivekanand Institute of Technology

ABSTRACT This Research Paper is about Restful API and Rest APIs. This Paper Presents Description about how APIS Restful APIs work and how they are implemented and why they are used in the modern world.

Keywords: Restful APIs, APIs

INTRODUCTION Restful APIs and APIs have become an essential tool of backend development. Without APIs , there will be a lot of security issues in the system. The Modern Mobile and Web Development world essential rely on Restful APIs and APIs for authentication,and Submitting Data. A Good API makes it easy for the developer to work with, and helps to create really powerful applications. Design of an API has to be in such a way that, the user should not have anything visible in terms of the complex structure of the API. The Entire Research Paper explains 1) What are APIs2) How are they used. 3) What are the required technologies to create APIs. 4) Why are they important and must use. RESEARCH ELABORATIONS After doing a lot of research work. I can following elaborations. API - standings for Application Programming interfaces. APIs are helpful to have a centralized backend system for a mobile and a web application. For E.g.: if a college has website which registers students in its database. And the college wants to develop a mobile app , to register thestudents in their database. However the college is already using a Database for the website. So they in

@ IJTSRD | Available Online @ www.ijtsrd.com | Volume – 2 | Issue – 5 | Jul-Aug

ISSN No: 2456 - 6470 | www.ijtsrd.com | Volume

International Journal of Trend in Scientific Research and Development (IJTSRD)

International Open Access Journal

APIs and Restful APIs Mithilesh Tarkar1, Ameya Parker2

1Student, 2Professor Swami Vivekanand Institute of Technology (VESIT),

Chembur, Mumbai, India

This Research Paper is about Restful API and Rest This Paper Presents Description about how Restful APIs work and how they are

implemented and why they are used in the modern

Restful APIs and APIs have become an essential tool of backend development. Without APIs , there will be a lot of security issues in the system. The Modern Mobile and Web Development world essential rely on Restful APIs and APIs for authentication, Fetching

A Good API makes it easy for the developer to work with, and helps to create really powerful applications. Design of an API has to be in such a way that, the user should not have anything visible in terms of the

explains 1) What are 3) What are the required

technologies to create APIs. 4) Why are they

After doing a lot of research work. I can represent the standings for

Application Programming interfaces. APIs are helpful to have a centralized backend system for a mobile and

: if a college has website which registers students in its database. And the college wants to develop a mobile app , to register the

database. However the college is already using a Database for the website. So they in

order to keep using the same database for the mobile application, as well as for the website. implementation can be used to solve this problem. With an API, the Developer only has to design the front end of the mobile application. The backend of the application will be the same as that of its website. The Developer has to do API Calls to fdisplay the data, push the data and to delete the data. In My Research i also found out that, API are also used for live data updates. Where there is a pie chart of attendance. Example 1:

*The Above Figure shows the attendance of Class 1 A, Class 1 B and Class 2 A , where the data is updated whenever the attendance is taken through a live API.

2018 Page: 319

6470 | www.ijtsrd.com | Volume - 2 | Issue – 5

Scientific (IJTSRD)

Open Access Journal

he same database for the mobile application, as well as for the website. An API implementation can be used to solve this problem.

, the Developer only has to design the front end of the mobile application. The backend of the application will be the same as that of its website. The Developer has to do API Calls to fetch the data, display the data, push the data and to delete the data. In My Research i also found out that, API are also used for live data updates. Where there is a pie chart

The Above Figure shows the attendance of Class 1

A, Class 1 B and Class 2 A , where the data is updated whenever the attendance is taken through a

Page 2: APIs and Restful APIs

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

Example 2: Fetching JSON array from mongodb Database.

* The above image , shows a database collection of books being fetched from mongodb database , by calling the above URL. * This data can then be used to display on the front end of the website/mobile applica Code Snippets : Creating a MongoDB Schema -

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com | Volume – 2 | Issue – 5 | Jul-Aug 2018

Fetching JSON array from mongodb Database.

* The above image , shows a database collection of books being fetched from mongodb database , by calling

* This data can then be used to display on the front end of the website/mobile application.

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

Aug 2018 Page: 320

* The above image , shows a database collection of books being fetched from mongodb database , by calling

tion.

Page 3: APIs and Restful APIs

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com

Writing the Functions :

Calling the Function from the Server main file:

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456

@ IJTSRD | Available Online @ www.ijtsrd.com | Volume – 2 | Issue – 5 | Jul-Aug

Calling the Function from the Server main file:

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

2018 Page: 321

Page 4: APIs and Restful APIs

International Journal of Trend in Scientific Research and Development (IJTSRD) ISSN: 2456-6470

@ IJTSRD | Available Online @ www.ijtsrd.com | Volume – 2 | Issue – 5 | Jul-Aug 2018 Page: 322

Simulation Softwares Used : RestEasy Plugin , for Google Chrome. Postman IDE RESULTS OR FINDING For research purposes we modelled a books api and did testing, where we are trying to put, push and delete the data in the database. If we did not query the API correctly, it showed error code. If the query was written correctly, then it showed status ok, and inserted the data into the database. There was no rollback, or dead transactions in this. Either the Transaction was accepted or it was rejected. There is this solid security in the API calls, where if even a single part of the query is wrong, nothing will work properly.

CONCLUSIONS Thus, we can conclude the by using API Technology, we can make a very strong back end , and it can be scalable and the data can be used to render on a mobile device or even a Smart TV. Thus, helping to separate the front end environment and backend environment completely. BIOGRAPHY

Mr Mithilesh Tarkar l is currently a final year M.C.A student of Vivekanand Education Society's Institute of Technology (V.E.S.I.T), Mumbai. He has completed his B.COM graduation in the year 2013 from R. A Podar

College of Commerce and Economics, Mumbai, Maharashtra, India .He has an abiding interest in Full Stack Development, Graphic Designing, UI/UX Designing.