Install the dependencies and start the server.
$ git clone https://github.com/erpeel-a/Sistem-Pengaduan-Sekolah-SMKN2Karanganyar.git
$ cd Sistem-Pengaduan-Sekolah-SMKN2Karanganyar
$ composer install
$ cp .env.example to .env
$ change setting for database & generate key with php artisan key:generate
$ Call Action to Migrate Database & seeder with php artisan migrate --seed
$ Call Action to Generate JWT Secret key with php artisan jwt:secret
$ php artisan serve
- Node.js
- Composer
- Laravel
- Tailwind
- Bootstrap
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/login | POST | used for user login | Body Request : email : string : email, password : string |
Example :
http://example.dev/api/v1/login
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/logout | POST | used for user logout | Authorization : string |
Example :
http://example.dev/api/v1/logout
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/refresh | POST | used for user refresh token | - |
Example :
http://example.dev/api/v1/refresh
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/pengaduan | GET | used for show all pengaduan | Authorization token : string |
Example :
http://example.dev/api/v1/pengaduan
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/pengaduan/{pengaduan_id} | GET | used for show detail pengaduan | Authorization token : string |
Example :
http://example.dev/api/v1/pengaduan
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/pengaduan | POST | used for create pengaduan | Body Request : nomor_induk : integer, judul_laporan : string, email : string, no_telp : integer, alamat : string , jenis_pengaduan : string ['aduan', 'aspirasi'] , tanggal_laporan : string or Date, laporan : string or text, berkas_pendukung : file , Header Authorization token : string |
Example :
http://example.dev/api/v1/pengaduan
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/pengaduan/{pengaduan_id}?_method=put | POST | used for update pengaduan | Body Request : nomor_induk : integer, judul_laporan : string, email : string, no_telp : integer, alamat : string , jenis_pengaduan : string ['aduan', 'aspirasi'] , tanggal_laporan : string or Date, laporan : string or text, berkas_pendukung : file , Header Authorization token : string, |
Example :
http://example.dev/api/v1/pengaduan/2?_method=put
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/pengaduan?judul_laporan=judul | GET | used for search pengaduan by name | Query Params : judul_laporan , Authorization token : string |
Example :
http://example.dev/api/v1/pengaduan?judul_laporan=testjudul
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/tanggapan | GET | used for show all tanggapan | - |
Example :
http://example.dev/api/v1/tanggapan
ENDPOINT | Method | Description | Data |
---|---|---|---|
/api/v1/tanggapan/pengaduan/{pengaduan_id} | GET | used for detail tanggapan from a pengaduan | Authorization token : string |
Example :
http://example.dev/api/v1/tanggapan/pengaduan/2
Contributors
- Hendra Agil Syaputra as Frontend Developer
- Muhamad Zainal Arifin as Backend Developer
- Niko Febriyanto as Backend Developer
2021 © XII RPL A SMKN 2 Karanganyar.