-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from erwinspeybroeck/Develop
Feed API's first version. There were review remarks from Anton and Thomas. I think I worked through all the review comments. To do = mandatory fields still have to be marked To do = list of feed categories in the location.md file needs to be completed
- Loading branch information
Showing
29 changed files
with
864 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of daily feed reports. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarDailyFeedReportResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case daily feed reports." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feeds. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feeds." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed intakes. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedIntakeEventResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed intakes." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed recommendations. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedRecommendationResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed recommendations." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of feed reports. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarFeedReportResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case feed reports." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of rations. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "../collections/icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarRationResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case rations." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"description": "Enumeration for feed categories. Each category can have more detail in a type specification.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Concentrate", | ||
"Roughage", | ||
"Additives", | ||
"Other" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"description": "Enumeration for the method with which a value was determined.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Analyzed", | ||
"Derived" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"description": "Reporting the feed consumed during a certain time period", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"eventDate": { | ||
"$ref": "../types/icarDateType.json", | ||
"description": "date of the feeding" | ||
}, | ||
"feedVisitDuration": { | ||
"$ref": "../types/icarFeedDurationType.json" | ||
}, | ||
"consumedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedFeedType.json" | ||
} | ||
}, | ||
"consumedRation": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedRationType.json" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"description": "Event for recording a feed intake", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarEventCoreResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required": [ | ||
"feedingStartingDateTime", | ||
"feedVisitDuration" | ||
], | ||
|
||
"properties": { | ||
"feedingStartingDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The moment the feeding started" | ||
}, | ||
"feedVisitDuration": { | ||
"$ref": "../types/icarFeedDurationType.json" | ||
}, | ||
"consumedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarConsumedFeedType.json" | ||
} | ||
}, | ||
"consumedRation": { | ||
"$ref": "../types/icarConsumedRationType.json", | ||
"description": "The eventual ration that has been consumed" | ||
}, | ||
"device": { | ||
"$ref": "../types/icarDeviceReferenceType.json", | ||
"description": "Optional information about the device used for the feeding." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"description": "An overview of the recommended feeding of animals", | ||
|
||
"allOf": [{ | ||
"$ref": "../resources/icarResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required": [ | ||
"id", | ||
"animal" | ||
], | ||
|
||
"properties": { | ||
"id": { | ||
"$ref": "../types/icarFeedRecommendationIdType.json", | ||
"description": "Unique identifier in the source system for this recommendation." | ||
}, | ||
"animal": { | ||
"$ref": "../types/icarAnimalIdentifierType.json", | ||
"description": "Unique animal scheme and identifier combination." | ||
}, | ||
"recommendationDateTime ": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The timestamp of the recommendation." | ||
}, | ||
"startDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The date of the beginning of the recommendation." | ||
}, | ||
"endDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"description": "The end date of the recommendation." | ||
}, | ||
"recommendedFeed": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarRecommendedFeedType.json" | ||
} | ||
}, | ||
"recommendedRation": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../types/icarRecommendedRationType.json" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.