• Spotkania

    1. Lista

      • route: {{ action('Meetings\MeetingController@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 date
           direction kierunek, domyślnie ASC
        where[] tablica
           customer_id id klienta
           year rok
           month miesiąc
      • response:
                                
                            
    2. Element

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

      • route: {{ action('Meetings\MeetingController@store') }} (dodwanie)
      • route: {{ action('Meetings\MeetingController@update', ['id' => 'ID']) }} (edycja)
      • ID - id elementu
      • method: POST
      • parametry:
        Parametr Opis
        date data, format Y-m-d np. 2021-02-17, wymagany
        time godzina, format H:i np. 14:45, wymagany
        customer_id id klienta, wymagany
        important_information ważne informacje
        description notatka
      • response:
                                    
                                
    4. Usuwanie

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