Skip to content

26kito/rental-mobil

Repository files navigation

Api Rental Mobil

Table of contents

General info

Membuat api rental mobil dengan menggunakan framework Laravel

Packages

Package yang digunakan:

  • Laravel Passport

Example

Register User

Register User

Endpoint untuk registrasi user.

  • URL /api/v1/user/register

  • Method: POST

  • Request Body name *required
    email *required
    mobile_phone *required
    address *required
    role_id *required
    password *required
    password_confirmation *required

  • Success Response:

    • Code: 201 Created
      Content: { "message": "Successfully register" }
  • Error Response:

    • Code: 400 Bad Request
      Content: { "message" : {"email": ["The email has already been taken."]} }

    OR

    • Code: 400 Bad Request
      Content: { "message" : {"address": ["The address field is required."]} }

Setup

How to run this app on your local?

  1. After clone this repo
  2. Run this on your terminal
    1. composer install
    2. cp .env.example .env
    3. change the db config based on your own db
    4. php artisan key:generate
    5. php artisan passport:install
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published