Giter VIP home page Giter VIP logo

assesment's Introduction

Cara penggunaan Aplikasi

requirement

  • composer
  • php 7,4 keatas
  • apache atau nginx
  • mysql

cara install

  • silahkan download aplikasinya
  • lalu ketik composer install
  • setelah selesai buka terminal dan silakan ketik php artisan migrate untuk migrasi database atau php artisan migrate --seed untuk menggunakan faker
  • untuk menjalankan aplikasi ketik php artisan serve pada terminal
  • untuk mengetes API silahkan buka postman atau thunder client pada vscode

enpoint

  • method:get endpoint:api/pegawai untuk melihat semua list pegawai request:[page:integer|nullable]
  • method:post endpoint:api/pegawai untuk menambah data kasbon request: [nama:varchar|required|unique|maks:10.tanggal_masuk:date|required|tidak_lebih_dari_tanggal_sekarang,total_gaji:integer|required|min:4000000|maks:100000000]
  • method:get endpoint:api/kasbon untuk menampilkan seluruh data karbon request:[bulan:string|required|format:yyyy-mm,belum_disetujui:integer|nullable|jika_1_maka_menampilkan_yang_belum_disetujui,page:integer|nullable]
  • method:post endpoint:api/kasbon request:[pegawai_id:integer|required|exist:pegawai,id|sudah_bekerja_lebih_dari_1_tahun|maksimal_3_kali_dalam_1_bulan]
  • method:patch endpoint:api/kasbon/setujui/{id} untuk mengisi field tanggal disetujui berdasarkan id kasbon request:[id:required|exist:kasbon,id|tanggal_disetujui_masih_null] -method:post endpoint:api/kasbon/setujui-masal mengubah status seluruh data kasbon yang belum disetujui menjadi disetujui melalui pengisian tanggal_disetujui.

assesment's People

Contributors

crunchy89 avatar

Watchers

James Cloos avatar  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.