Built with PHP using the Laravel Framework.
Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things..
This is RESTful api design for
Built withPHP, using Laravel framework and other libraries.
-
Open your terminal or command prompt
-
Type
git clone https://github.com/dhiyo7/Karirpad-BE.git
-
Open the folder and type
composer update
for install dependencies -
Register an account or create new database
-
Create file .env in root folder with the following contents :
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=namedatabase
DB_USERNAME=usernamedb
DB_PASSWORD=passwddb
- Type
php artisan server
in terminal for run this backend.
https://karirpad-test-backend.herokuapp.com
Used for suplyind data of category
No | Method | Endpoint | Header | Info |
---|---|---|---|---|
1 | POST | /api/category | Accept : application/json | Create new Category |
2 | PUT | /api/category/{id} | Accept : application/json | Edit Category |
3 | GET | /api/category | Accept : application/json | Show list of category |
4 | DELETE | /api/category/{id} | Accept : application/json | Delete category |
Used for supplying data of all stuff
No | Method | Endpoint | Header | Info |
---|---|---|---|---|
1 | POST | /api/stuff | Accept : application/json | Create new Stuff |
2 | PUT | /api/stuff/{id} | Accept : application/json | Edit Stuff |
3 | GET | /api/stuff | Accept : application/json | Show list of stuff |
4 | DELETE | /api/stuff/{id} | Accept : application/json | Delete stuff |