Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adhityasukma/laravel-backend-api-test-case
Laravel Backend API Test Case
https://github.com/adhityasukma/laravel-backend-api-test-case
adhityasukma backend-api laravel
Last synced: about 2 months ago
JSON representation
Laravel Backend API Test Case
- Host: GitHub
- URL: https://github.com/adhityasukma/laravel-backend-api-test-case
- Owner: adhityasukma
- Created: 2023-09-12T04:18:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T13:11:56.000Z (about 1 year ago)
- Last Synced: 2023-12-16T14:43:50.107Z (about 1 year ago)
- Topics: adhityasukma, backend-api, laravel
- Language: PHP
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Backend Test Case
The Laravel version used is version 10.x## Steps as follows
Migrate Database
```
php artisan migrate
php artisan db:seed BookSeeder
php artisan db:seed MemberSeeder
````
## Available Route API
1. List Members
- Method: **GET**
- URL: **api/members**
1. List Books
- Method: **GET**
- URL: **api/books**
3. Booking / Borrowed Book
- Method: **POST**
- URL: **api/borrowed**
5. Returned Book
- Method: **DELETE**
- URL: **/api/borrowed/returned/{id_book}**
### Note
This Postman URL https://www.postman.com/bold-meadow-333946/workspace/laravel-backend-api-test-case/collection/5780128-ac23fd23-f368-414f-9021-958c595b1fb5?action=share&creator=5780128