Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add management and performance URL schemes #237

Merged
merged 7 commits into from
Aug 26, 2021

Conversation

cookeac
Copy link
Collaborator

@cookeac cookeac commented Aug 12, 2021

Added URL schemes for management (animal sets, animal set join/leave, and devices), and performance (weights, conformation scores, breeding values).
Along with other PRs, resolves #154.

Renamed icarErrorResource to icarBatchResultMessage, and added icarBatchResultSeverityType enum.
Batch POSTS now always return an array of icarBatchResult, each of which may contain an array of icarErrorWarningMessageResource.

Single POSTs if successful return the posted object (ID filled in), otherwise they return an errors array of icarErrorWarningMessageResource.

Sorry for renaming the file, but it helped to clarify its purpose.
Renamed icarErrorWarningMessage Resource to icarResponseMessageResource based on feedback to PR adewg#232
Added URL schemes for management (animal sets, animal set join/leave, and devices), and performance (weights, conformation scores, breeding values).
Along with other commits, resolves adewg#154.
@cookeac cookeac requested review from ahokkonen, alamers and AndreasSchultzGEA and removed request for AndreasSchultzGEA August 18, 2021 05:34
Copy link
Contributor

@ahokkonen ahokkonen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments regarding batch urls. Should we use "locations" sub-path as for get/single post endpoints?
As I see this PR also includes the changes from previous POST PRs. To by completing this one we'll resolve all the rest :)

}
}
},
"/batches/{location-scheme}/{location-id}/diagnoses": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "locations" path be added after /batches -> "/batches/locations/{location-scheme}/{location-id}/diagnoses"? This question also applies to all the other "batches" endpoints.

}
}
},
"/batches/{location-scheme}/{location-id}/animal-sets": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "locations" path be added after /batches -> "/batches/locations/{location-scheme}/{location-id}/diagnoses"? This question also applies to all the other "batches" endpoints in managementURLScheme.json.

}
}
},
"/batches/{location-scheme}/{location-id}/weights": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "locations" path be added after /batches -> "/batches/locations/{location-scheme}/{location-id}/diagnoses"? This question also applies to all the other "batches" endpoints in performanceURLScheme.json.

Based on comments in the PR.
Copy link
Collaborator

@erwinspeybroeck erwinspeybroeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok for me, no remarks

@erwinspeybroeck erwinspeybroeck merged commit 7e7727a into adewg:Develop Aug 26, 2021
@cookeac cookeac deleted the cookeac-management branch August 27, 2021 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants