• Użytkownicy

    1. Lista

      • route: {{ action('Users\UserController@items') }}
      • method: GET
      • parametry:
        Parametr Opis
        where[] tablica
           search wyszukiwany ciąg znaków
           active czy aktywny 1 | 0
           type typ użytkownika: ADMIN | WORKER
      • response:
                                    
                                
    2. Pobranie użytkownika

      • route: {{ action('Users\UserController@item', ['id' => '1']) }}
      • method: GET
      • response:
                                    
                                
    3. Dodanie / aktualizacja użytkownika

      • route: {{ action('Users\UserController@store') }}
      • route: {{ action('Users\UserController@update', ['id' => '1']) }}
      • method: POST
      • parametry:
        Parametr Opis
        name nazwa, wymagane
        active czy konto jest aktywne (0 | 1), wymagane
        type typ, wymagane, ADMIN | WORKER
        email adres e-mail
        password hasło, wymagane jeśli nowy użytkownik
      • response:
                                    
                                
    4. Usunięcie użytkownika

      • route: {{ action('Users\UserController@delete', ['id' => '1']) }}
      • method: POST
      • response: