You are on page 1of 9

RESTFULL API IN LARAVEL

BY:
Ni Putu Nita Nathalia (2215101050/IKI)

UNIVERSITAS PENDIDIKAN GANESHA


2023
A. INTRODUCTION

The background to the development of the RESTFULL API in Laravel is reflected in the need
for efficient and structured interaction between web-based or mobile applications and the server.
As modern software development projects become increasingly complex, RESTful APIs are
becoming a popular approach to provide backend services that can be programmatically accessed
and easily interacted with by various clients. Laravel, as a powerful PHP framework, provides
tools and conventions that make it easy for developers to create and maintain APIs that are
consistent, easy to understand, and reliable in providing data or services to diverse client
applications. In this practicum I created a CRUD RESTFULL API which is used for a book
reading project website where this API will be used on book pages and admin pages.

B. METHOD

1. Create project Laravel name

2. Install Laravel Breeze

3. Create Controller resource API

4. Create model and migration

5. Doing migrate

6. Create route in routes/api


7. Make API to view data

8. Make API to sore data

9. Make API to update data


10. Make API to delete data

11. Make a controller for API login

12. Create API login


TEST CODE IN POSTMAN

1. SHOW DATA
2. CREATE DATA
3. UPDATE DATA
4. DELETE DATA

5. AUTH LOGIN
Link source github : https://github.com/TudeRama/NITA-API

You might also like