Class: Pike13::API::V2::Front::Note

Inherits:
Base
  • Object
show all
Defined in:
lib/pike13/api/v2/front/note.rb

Overview

Notes in Front API are nested under people

Class Method Summary collapse

Methods inherited from Base

client, configure

Class Method Details

.all(person_id:) ⇒ Object

GET /front/people/:person_id/notes



11
12
13
# File 'lib/pike13/api/v2/front/note.rb', line 11

def all(person_id:)
  client.get("front/people/#{person_id}/notes")
end

.find(person_id:, id:) ⇒ Object

GET /front/people/:person_id/notes/:id



16
17
18
# File 'lib/pike13/api/v2/front/note.rb', line 16

def find(person_id:, id:)
  client.get("front/people/#{person_id}/notes/#{id}")
end