/back-end

Primary LanguageJavaScript

RecordsApi

RESTful API in Laravel 8 that contains all methods (GET,POST,PUT,DELETE)

Project Setup

Create MYSQL Database

Database Name : back-end

Update the database with new data model

$ php artisan migrate

Start the web server on http://http://127.0.0.1:8000

$ php artisan serve

Usage

HTTP verbs Paths Used for
GET /api/records List all records
POST /api/records Add new record
PUT /api/records/id Update a record
DELETE /api/records/id Delete a record

You can test the API using REST-Client or Postman

REST-Client Screenshot

REST-Client

Postman Screenshot

Postman

I add three interfaces (Show,Add,Edit)

list image image