openEHR / specifications-ITS-REST

openEHR REST API Specifications
https://specifications.openehr.org/releases/ITS-REST/latest
Apache License 2.0
18 stars 15 forks source link

Why GET /ehr/{ehrId}/versioned_ehr_status returns only revision_history? #36

Open ppazos opened 7 years ago

ppazos commented 7 years ago

Shouldn't be more RESTful to have a dimension per each method in VERSIONED_OBJECT? And leave GET /ehr/{ehrId}/versioned_ehr_status to return just uid, owner_id and time_created.

GET /ehr/{ehrId}/versioned_ehr_status/revision_history GET /ehr/{ehrId}/versioned_ehr_status/all_versions GET /ehr/{ehrId}/versioned_ehr_status/latest_trunk_version GET /ehr/{ehrId}/versioned_ehr_status/version_at_time etc.

This is similar to https://github.com/openEHR/specifications-ITS/issues/27 but focuses on the current Body of the 200 response from https://github.com/openEHR/specifications-ITS/blob/master/apiary.apib#L561-L611