Skip to content

Repository files navigation

Project kali ini adalah latihan saya dalam membuat RESTful API

Tech Stack

  • PHP
  • Laravel
  • MySQL

Endpoints

note: jangan lupa menambahkan Accept => application/json di header

Contacts

  • Get all contacts : GET /api/contacts
  • Post a contacts : POST /api/contacts
  • Update a contacts : PUT /api/contacts/{id}
  • Delete a contacts : DELETE /api/contacts/{id}

Authentication

  • sign up : POST /api/register
  • sign in : POST /api/signin
  • sign out : DELETE /api/signout

Somewhat usefull method

  • unique validation for create or update 'phone' => ['required', 'numeric', 'digits_between:10,15', Rule::unique('contacts')->ignore($this->contact)]

About

Practice REST API and JWT using laravel

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages