Skip to content

Tasiobg/laravel-api-example

Repository files navigation

A basic RESTful API example I build using Laravel 5.3

Files added or changed in this project:

  • routes/api.php
  • app/Http/Controllers/EmployeeController.php
  • app/Models/Employee.php
  • app/Enums/ResponseStatusEnum.php

Database used:

Example request and responses:
GET http://myappname.app/api/employee/10011
Response: {"status":"success","data":{"emp_no":10011,"birth_date":"1953-11-07","first_name":"Mary","last_name":"Sluis","gender":"F","hire_date":"1990-01-22"}}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published