• Klienci: adresy

    1. Lista

      • route: {{ action('Customers\AddressController@items') }}
      • method: GET
      • parametry:
        Parametr Opis
        pagination czy zastosować paginację (niewymagane, domyślnie 1), 1|0
        per_page liczba elementów na stronie (niewymagane, domyślnie 20)
        order[] kolejność sortowania (tablica, niewymagane)
           column kolumna, domyślnie name
           direction kierunek, domyślnie ASC
        where[] tablica
           search wyszukiwany ciąg znaków
           customer_id id klienta
      • response:
                                
                            
    2. Element

      • route: {{ action('Customers\AddressController@item', ['id' => 'ID']) }}
      • ID - id elementu
      • method: GET
      • response:
                                    
                                
    3. Dodawanie/edycja

      • route: {{ action('Customers\AddressController@store') }} (dodwanie)
      • route: {{ action('Customers\AddressController@update', ['id' => 'ID']) }} (edycja)
      • ID - id elementu
      • method: POST
      • parametry:
        Parametr Opis
        customer_id id klienta, wymagany
        name imię, wymagany
        surname nazwisko, wymagany
        street ulica, wymagany
        building_number nr budynku, wymagany
        house_number nr lokalu
        post_code kod pocztowy, wymagany
        city miejscowość, wymagany
      • response:
                                    
                                
    4. Usuwanie

      • route: {{ action('Customers\AddressController@delete', ['id' => 'ID']) }}
      • ID - id elementu
      • method: POST
      • response: