Skip to content

Commit c9d7152

Browse files
JoleVLFJoleVLF
andauthored
Readme update (#24)
Co-authored-by: JoleVLF <Jovan@DESKTOP-JTIACNO>
1 parent 68b1269 commit c9d7152

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ If Gatekeeper is used, data file param can be ignored.
7979
When service is run wihtout Gatekeeper data must be provided in .json file format.
8080

8181

82+
```shell
83+
84+
/api/v1/openagri-report/animal-report/
85+
86+
```
87+
88+
Response: A generated PDF file containing the animal report.
89+
90+
Possible query parameters:
91+
92+
animal_group (Optional, string): Specifies the group of animals to include in the report.
93+
name (Optional, string): Filters results by animal name.
94+
parcel (Optional, UUID4): Identifies the specific parcel where the animals are located.
95+
status (Optional, integer): Filters animals by their status.
96+
Example Usage
97+
The Animal Report API can be used with or without Gatekeeper support:
98+
99+
With Gatekeeper: The data file parameter can be ignored.
100+
Without Gatekeeper: Data must be provided in JSON file format.
101+
If no data file is provided and Gatekeeper is not enabled, the API fetches data from an external Farm Calendar service. The request is made with the provided filters, and the system retrieves the necessary animal data.
102+
103+
If a valid JSON file is uploaded, the API processes the data directly to generate the report
104+
82105
<h2>Pytest</h2>
83106
Pytest can be run on the same machine the service has been deployed to by moving into the tests dir and running:
84107

0 commit comments

Comments
 (0)