i have follow tables:
appointment
id
value
patient_id
patient
id
name
birthdate
race_id
How the best way to create API resource if I search patient by appointment value?
Option 1: GET /patient?appointment=111111
Option 2: GET /appointment/{value} and return JSON Patient
Option 3: using nested resources like GET /patient/{n}/appointment
Option 4: have any ideas?
tks