Coder Social home page Coder Social logo

masjidpedia-test's Introduction

Masjid Pedia Test (Petunjuk Penggunaan)

1. Rename file .envexample menjadi .env

2. Input konfigurasi Database MySQL dan Mail pada file .env

3. Jalankan perintah berikut di terminal secara bertahap:

composer install

kemudian:

php artisan install:project

4. Jalankan perintah berikut untuk menyalakan server:

php artisan serve

Akun Admin

email: [email protected] password: password

Rest API

1. Login Toko

Endpoint:

/api/login

Method: POST

Body Tipe Deskripsi
email String Email Toko
password String Password Toko

2. Register Toko

Endpoint:

/api/register

Method: POST

Body Tipe Deskripsi
name String Nama Toko
email String Email Toko
password String Password Toko
password_confirmation String Konfirmasi Password

3. Reset Password

Endpoint:

/api/register

Method: POST

Body Tipe Deskripsi
email String Email Toko
password String Password Baru Toko
password_confirmation String Konfirmasi Password Baru

4. Data Semua Supplier

Endpoint:

/api/suppliers

Method: GET

5. Data Produk Spesifik Supplier

Endpoint:

/api/suppliers/ID/products

ID: id supplier yang ingin diketahui data produknya.

Method: GET

6. Request Produk Ke Supplier

Endpoint:

/api/suppliers/ID/products

ID: id supplier yang ingin dikirimkan request.

Method: POST

Body Tipe Deskripsi
products String Array Object id product dan jumlah yang ingin dipesan

contoh data products:

[
    {
	    "id": 1,
	    "amount": 10
	},
	{
	    "id": 2,
	    "amount": 15
	},
]

5. Data Produk Toko yang Sudah di Aprrove

Endpoint:

/api/my-product

Selesai.

masjidpedia-test's People

Contributors

salmansaidr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.