diff --git a/fixtures/bugs/2866/2866.yaml b/fixtures/bugs/2866/2866.yaml new file mode 100644 index 0000000..9622c72 --- /dev/null +++ b/fixtures/bugs/2866/2866.yaml @@ -0,0 +1,9547 @@ +swagger: '2.0' +info: + version: '0.0.1' + title: Planting Service + description: Planting Service is the reference for all planting activities. + contact: {} +host: www.example.com +basePath: / +securityDefinitions: {} +schemes: +- https +consumes: +- application/json +produces: +- application/json +paths: + /healthz: + get: + description: Service health check + summary: Service health check + tags: + - core + operationId: Servicehealthcheck + deprecated: false + produces: + - application/json + parameters: [] + responses: + default: + description: '' + headers: {} + /propertiez: + get: + description: Build/Runtime properties + summary: Build/Runtime properties + tags: + - core + operationId: Build/Runtimeproperties + deprecated: false + produces: + - application/json + parameters: [] + responses: + default: + description: '' + headers: {} + /hystrixz: + get: + description: Hystrix event stream + summary: Hystrix event stream + tags: + - core + operationId: Hystrixeventstream + deprecated: false + produces: + - application/json + parameters: [] + responses: + default: + description: '' + headers: {} + /prometheuz: + get: + description: Prometheus metrics + summary: Prometheus metrics + tags: + - core + operationId: Prometheusmetrics + deprecated: false + produces: + - application/json + parameters: [] + responses: + default: + description: '' + headers: {} + /legacy/nitro/api/data/v1/planting_activities/{activity-id}: + delete: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Delete a planting activity' + tags: + - legacy nitro + operationId: GONE:Deleteaplantingactivity + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + - name: activity-id + in: path + required: true + type: integer + format: int64 + description: '' + responses: + default: + description: '' + headers: {} + get: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Get a planting activity' + tags: + - legacy nitro + operationId: GONE:Getaplantingactivity + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: activity-id + in: path + required: true + type: integer + format: int64 + description: '' + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + post: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Update a planting activity' + tags: + - legacy nitro + operationId: GONE:Updateaplantingactivity + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: activity-id + in: path + required: true + type: integer + format: int64 + description: '' + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + put: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Update a planting activity1' + tags: + - legacy nitro + operationId: GONE:Updateaplantingactivity1 + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: activity-id + in: path + required: true + type: integer + format: int64 + description: '' + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + /legacy/nitro/api/data/v1/planting_activities: + get: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Get planting activites' + tags: + - legacy nitro + operationId: GONE:Getplantingactivites + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + post: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Create planting activities' + tags: + - legacy nitro + operationId: GONE:Createplantingactivities + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + put: + description: 'GONE: Nitro Planting Activities API V1' + summary: 'GONE: Update multiple planting activities' + tags: + - legacy nitro + operationId: GONE:Updatemultipleplantingactivities + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-user-email + in: header + required: true + type: string + description: email + - name: user + in: query + required: false + type: integer + format: int64 + description: '' + - name: field_groups + in: query + required: false + type: string + description: '' + responses: + default: + description: '' + headers: {} + /legacy/umber/v1/programs.json: + get: + description: Umber API V1 + summary: (Deprecated) Get all planting programs associated with a user + tags: + - legacy umber + operationId: (Deprecated)Getallplantingprogramsassociatedwithauser + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberPlantingProgramsResponse' + headers: {} + '500': + description: Server Error + headers: {} + post: + description: Umber API V1 + summary: 'GONE: Create a new planting program' + tags: + - legacy umber + operationId: GONE:Createanewplantingprogram + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + responses: + '201': + description: Created + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/programs/{id}.json: + delete: + description: Umber API V1 + summary: 'GONE: Delete a program' + tags: + - legacy umber + operationId: GONE:Deleteaprogram + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: id + in: path + required: true + type: integer + format: int64 + description: program id + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + get: + description: Umber API V1 + summary: (Deprecated) Get a program + tags: + - legacy umber + operationId: (Deprecated)Getaprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: id + in: path + required: true + type: integer + format: int64 + description: program id + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberPlantingProgramResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: Umber API V1 + summary: 'GONE: Update a planting program' + tags: + - legacy umber + operationId: GONE:Updateaplantingprogram + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: id + in: path + required: true + type: integer + format: int64 + description: program id + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: Umber API V1 + summary: 'GONE: Update a planting program1' + tags: + - legacy umber + operationId: GONE:Updateaplantingprogram1 + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: id + in: path + required: true + type: integer + format: int64 + description: program id + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/programs/query.json: + post: + description: Umber API V1 + summary: (Deprecated) Get programs by id + tags: + - legacy umber + operationId: (Deprecated)Getprogramsbyid + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: ProgramQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberPlantingProgramsResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/apply-program.json: + post: + description: Umber API V1 + summary: 'GONE: Apply a program to a collection of field profiles' + tags: + - legacy umber + operationId: GONE:Applyaprogramtoacollectionoffieldprofiles + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + responses: + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/remove-program.json: + post: + description: Umber API V1 + summary: 'GONE: Remove a program from a collection of profiles' + tags: + - legacy umber + operationId: GONE:Removeaprogramfromacollectionofprofiles + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/programs/{program-id}.json: + get: + description: Umber API V1 + summary: (Deprecated) Retrieve all profiles for a program + tags: + - legacy umber + operationId: (Deprecated)Retrieveallprofilesforaprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: program-id + in: path + required: true + type: integer + format: int64 + description: program id + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberProgramFieldsResponse' + headers: {} + '404': + description: NOT Found + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/fields/query.json: + post: + description: Umber API V1 + summary: (Deprecated) Query for profile information by field IDs + tags: + - legacy umber + operationId: (Deprecated)QueryforprofileinformationbyfieldIDs + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: UmberFieldProfileQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/UmberFieldProfileQuery' + - name: full-profile + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberFieldPlantingProfiles' + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/fields/{field_id}/product-years/{product_year}.json: + delete: + description: Umber API V1 + summary: 'GONE: Delete a field profile' + tags: + - legacy umber + operationId: GONE:Deleteafieldprofile + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + get: + description: Umber API V1 + summary: (Deprecated) Get a field profile + tags: + - legacy umber + operationId: (Deprecated)Getafieldprofile + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: full-profile + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberFieldPlantingProfile' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: Umber API V1 + summary: 'GONE: Create or update a field profile' + tags: + - legacy umber + operationId: GONE:Createorupdateafieldprofile + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/fields/{field_id}/fmz/{fmz_id}/zones/query.json: + post: + description: Umber API V1 + summary: (Deprecated) Query for profile information by zone IDs + tags: + - legacy umber + operationId: (Deprecated)QueryforprofileinformationbyzoneIDs + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: fmz_id + in: path + required: true + type: string + format: uuid + description: '' + - name: full-profile + in: query + required: false + type: boolean + description: '' + - name: UmberZoneProfilesQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/UmberZoneProfilesQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberZoneProfileResponse' + headers: {} + '500': + description: Sever Error + headers: {} + /legacy/umber/v1/profiles/fields/{field_id}/fmz/{fmz_id}/zones/{zone_id}/product-years/{product_year}.json: + delete: + description: Umber API V1 + summary: 'GONE: Delete a zone profile' + tags: + - legacy umber + operationId: GONE:Deleteazoneprofile + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: fmz_id + in: path + required: true + type: string + format: uuid + description: '' + - name: zone_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + get: + description: Umber API V1 + summary: (Deprecated) Get a zone profile + tags: + - legacy umber + operationId: (Deprecated)Getazoneprofile + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: fmz_id + in: path + required: true + type: string + format: uuid + description: '' + - name: zone_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: full-profile + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/UmberZoneProfile' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: Umber API V1 + summary: 'GONE: Create or update a zone profile' + tags: + - legacy umber + operationId: GONE:Createorupdateazoneprofile + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: fmz_id + in: path + required: true + type: string + format: uuid + description: '' + - name: zone_id + in: path + required: true + type: string + description: '' + - name: product_year + in: path + required: true + type: integer + format: int64 + description: '' + - name: last-updated-at + in: query + required: false + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /legacy/umber/v1/profiles/fields/{field_id}/fmz/{fmz_id}/zones/edit-planting.json: + post: + description: Umber API V1 + summary: (Deprecated) Update planting information for a zone in a field + tags: + - legacy umber + operationId: (Deprecated)Updateplantinginformationforazoneinafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: '' + - name: x-http-caller-id + in: header + required: false + type: string + description: '' + - name: field_id + in: path + required: true + type: string + description: '' + - name: fmz_id + in: path + required: true + type: string + format: uuid + description: '' + - name: UmberPlantingEdits + in: body + required: true + description: '' + schema: + $ref: '#/definitions/UmberPlantingEdits' + responses: + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/validations/product-years/{product-year}: + get: + description: '**DEPRECATED - Please use GET /v3/validations**' + summary: (Deprecated) Get planting-specific validations for a given product year + tags: + - v1 + operationId: (Deprecated)Getplanting-specificvalidationsforagivenproductyear + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: if-none-match + in: header + required: false + type: string + description: Etag identifier + - name: product-year + in: path + required: true + type: integer + format: int64 + description: '' + responses: + '304': + description: Not Modified + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v1/best/fields/{field-id}: + get: + description: '**DEPRECATED - Please use GET /v3/fields**' + summary: (Deprecated) Best-available planting estimate for a field + tags: + - v1 + operationId: (Deprecated)Best-availableplantingestimateforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/best/fields/{field-id}/fmz/{fmz-id}: + get: + description: '**DEPRECATED - Please use GET /v3/fields/fmz/{fmz-id}**' + summary: (Deprecated) Best-available planting estimate for a field's FMZ zones + tags: + - v1 + operationId: (Deprecated)Best-availableplantingestimateforafield'sFMZzones + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: fmz-id + in: path + required: true + type: string + format: uuid + description: '' + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestFmzResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/best/fields/query: + post: + description: '**DEPRECATED - Please use POST /v3/fields**' + summary: (Deprecated) Best-available planting estimate for a field + tags: + - v1 + operationId: Post(Deprecated)Best-availableplantingestimateforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/best/fields/fmz/query: + post: + description: '**DEPRECATED - Please use POST /v3/fields/fmz/query**' + summary: (Deprecated) Best-available planting estimate for a field's FMZ zones + tags: + - v1 + operationId: Post(Deprecated)Best-availableplantingestimateforafield'sFMZzones + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: FieldsFmzsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsFmzsQuery' + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestFmzQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/programs: + get: + description: '**DEPRECATED - Please use GET /v3/programs**' + summary: (Deprecated) Get all planned planting programs + tags: + - v1 + operationId: (Deprecated)Getallplannedplantingprograms + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-invisible + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + post: + description: (Deprecated) Create a planned planting event + summary: (Deprecated) Create a planned planting event + tags: + - v1 + operationId: (Deprecated)Createaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewProgram + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgram' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/programs/query: + post: + description: '**DEPRECATED - Please use POST /v3/programs/query**' + summary: (Deprecated) Get many planned planting programs by ID + tags: + - v1 + operationId: (Deprecated)GetmanyplannedplantingprogramsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: ProgramsQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramsQueryRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/programs/{id}: + get: + description: '**DEPRECATED - Please use GET /v3/programs/{id}**' + summary: (Deprecated) Get an individual planned planting program + tags: + - v1 + operationId: (Deprecated)Getanindividualplannedplantingprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: '**DEPRECATED - Please use DELETE /v3/programs**' + summary: (Deprecated) Remove a planned planting event + tags: + - v1 + operationId: (Deprecated)Removeaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: (Deprecated) Patch a planned planting event + summary: (Deprecated) Patch a planned planting event + tags: + - v1 + operationId: (Deprecated)Patchaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ProgramPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: (Deprecated) Update a planned planting event + summary: (Deprecated) Update a planned planting event + tags: + - v1 + operationId: (Deprecated)Updateaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ProgramInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/programs/{id}/fields: + get: + description: (Deprecated) Get list of field associatd with a program + summary: (Deprecated) Get list of field associatd with a program + tags: + - v1 + operationId: (Deprecated)Getlistoffieldassociatdwithaprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramFieldsResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/fields/query: + post: + description: (Deprecated) Get planned planting events for many fields + summary: (Deprecated) Get planned planting events for many fields + tags: + - v1 + operationId: (Deprecated)Getplannedplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlanQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/fields/{field-id}: + get: + description: (Deprecated) Get planned planting events for one field + summary: (Deprecated) Get planned planting events for one field + tags: + - v1 + operationId: (Deprecated)Getplannedplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/apply-program: + post: + description: (Deprecated) Apply a program to one or more fields + summary: (Deprecated) Apply a program to one or more fields + tags: + - v1 + operationId: (Deprecated)Applyaprogramtooneormorefields + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: ApplyProgramRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ApplyProgramRequest' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/remove-program: + post: + description: (Deprecated) Remove planting program from one or more fields + summary: (Deprecated) Remove planting program from one or more fields + tags: + - v1 + operationId: (Deprecated)Removeplantingprogramfromoneormorefields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + - name: RemoveProgramRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RemoveProgramRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RemoveProgramResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/apply-prescription: + post: + description: '(Deprecated) GONE: Apply a prescription to a field' + summary: '(Deprecated) GONE: Apply a prescription to a field' + tags: + - v1 + operationId: (Deprecated)GONE:Applyaprescriptiontoafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + responses: + '500': + description: Server Error + headers: {} + /v1/planned/prescriptions/fields/query: + post: + description: '(Deprecated) GONE: Get all planned planting prescriptions for many fields' + summary: '(Deprecated) GONE: Get all planned planting prescriptions for many fields' + tags: + - v1 + operationId: (Deprecated)GONE:Getallplannedplantingprescriptionsformanyfields + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v1/planned/prescriptions/fields/{field-id}: + get: + description: '(Deprecated) GONE: Get all planned planting prescriptions for a field' + summary: '(Deprecated) GONE: Get all planned planting prescriptions for a field' + tags: + - v1 + operationId: (Deprecated)GONE:Getallplannedplantingprescriptionsforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v1/planned/prescriptions/query: + post: + description: '(Deprecated) GONE: Get many planned planting prescriptions by ID' + summary: '(Deprecated) GONE: Get many planned planting prescriptions by ID' + tags: + - v1 + operationId: (Deprecated)GONE:GetmanyplannedplantingprescriptionsbyID + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v1/planned/prescriptions/{id}: + get: + description: '(Deprecated) GONE: Get an individual planned planting prescription' + summary: '(Deprecated) GONE: Get an individual planned planting prescription' + tags: + - v1 + operationId: (Deprecated)GONE:Getanindividualplannedplantingprescription + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + delete: + description: '(Deprecated) GONE: Remove a planned planting event' + summary: '(Deprecated) GONE: Remove a planned planting event' + tags: + - v1 + operationId: (Deprecated)GONE:Removeaplannedplantingevent + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '500': + description: Server Error + headers: {} + put: + description: '(Deprecated) GONE: Update or create a planned planting event' + summary: '(Deprecated) GONE: Update or create a planned planting event' + tags: + - v1 + operationId: (Deprecated)GONE:Updateorcreateaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: '(Deprecated) GONE: Patch a planned planting event' + summary: '(Deprecated) GONE: Patch a planned planting event' + tags: + - v1 + operationId: (Deprecated)GONE:Patchaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/prescriptions: + post: + description: '(Deprecated) GONE: Create a planting prescription' + summary: '(Deprecated) GONE: Create a planting prescription' + tags: + - v1 + operationId: (Deprecated)GONE:Createaplantingprescription + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + responses: + '201': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/fields/{field-id}/programs: + patch: + description: (Deprecated) Patch a planting program for a field + summary: (Deprecated) Patch a planting program for a field + tags: + - v1 + operationId: (Deprecated)Patchaplantingprogramforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: NewProgramPatch + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgramPatch' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + post: + description: (Deprecated) Set a planting program for a field + summary: (Deprecated) Set a planting program for a field + tags: + - v1 + operationId: (Deprecated)Setaplantingprogramforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: NewProgram + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgram' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v1/planned/fields/{field-id}/prescriptions: + patch: + description: '(Deprecated) GONE: Patch a prescription for a field' + summary: '(Deprecated) GONE: Patch a prescription for a field' + tags: + - v1 + operationId: (Deprecated)GONE:Patchaprescriptionforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + post: + description: '(Deprecated) GONE: Set a prescription for a field' + summary: '(Deprecated) GONE: Set a prescription for a field' + tags: + - v1 + operationId: (Deprecated)GONE:Setaprescriptionforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v1/actual/events/query: + post: + description: '**DEPRECATED - Please use POST /v3**' + summary: (Deprecated) Get many machine-observed actual planting events by ID + tags: + - v1 + operationId: (Deprecated)Getmanymachine-observedactualplantingeventsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + - name: ActualEventQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventQueryRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/actual/events/{id}: + get: + description: '**DEPRECATED - Please use GET /v3**' + summary: (Deprecated) Get an individual machine-observed actual planting event + tags: + - v1 + operationId: (Deprecated)Getanindividualmachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: '**DEPRECATED - Please use DELETE /v3**' + summary: (Deprecated) Remove a machine-observed actual planting event + tags: + - v1 + operationId: (Deprecated)Removeamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: '**DEPRECATED - Please use PATCH /v3**' + summary: (Deprecated) Patch a machine-observed actual planting event + tags: + - v1 + operationId: (Deprecated)Patchamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ActualEventPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: '**DEPRECATED - Please use PUT /v3**' + summary: (Deprecated) Update a machine-observed actual planting event + tags: + - v1 + operationId: (Deprecated)Updateamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ActualEventInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/actual/events: + post: + description: '**DEPRECATED - Please use POST /v3**' + summary: (Deprecated) Create a machine-observed actual planting event + tags: + - v1 + operationId: (Deprecated)Createamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewActualEvent + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewActualEvent' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/actual/fields/query: + post: + description: '**DEPRECATED - Please use POST /v3**' + summary: (Deprecated) Get machine-observed actual planting events for many fields + tags: + - v1 + operationId: (Deprecated)Getmachine-observedactualplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/actual/fields/{field-id}: + get: + description: '**DEPRECATED - Please use GET /v3**' + summary: (Deprecated) Get machine-observed actual planting events for one field + tags: + - v1 + operationId: (Deprecated)Getmachine-observedactualplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/recorded/events/query: + post: + description: (Deprecated) Get many human-provided recorded planting events by ID + summary: (Deprecated) Get many human-provided recorded planting events by ID + tags: + - v1 + operationId: (Deprecated)Getmanyhuman-providedrecordedplantingeventsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: RecordedEventQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventQueryRequest' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/recorded/events/{id}: + get: + description: (Deprecated) Get an individual human-provided recorded planting event + summary: (Deprecated) Get an individual human-provided recorded planting event + tags: + - v1 + operationId: (Deprecated)Getanindividualhuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: (Deprecated) Remove a human-provided recorded planting event + summary: (Deprecated) Remove a human-provided recorded planting event + tags: + - v1 + operationId: (Deprecated)Removeahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: (Deprecated) PATCH a human-provided recorded planting event + summary: (Deprecated) PATCH a human-provided recorded planting event + tags: + - v1 + operationId: (Deprecated)PATCHahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: RecordedEventPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: (Deprecated) Update a human-provided recorded planting event + summary: (Deprecated) Update a human-provided recorded planting event + tags: + - v1 + operationId: (Deprecated)Updateahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: RecordedEventInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/recorded/events: + post: + description: (Deprecated) Create a human-provided recorded planting event + summary: (Deprecated) Create a human-provided recorded planting event + tags: + - v1 + operationId: (Deprecated)Createahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewRecordedEvent + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewRecordedEvent' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/recorded/fields/query: + post: + description: (Deprecated) Get human-provided recorded planting events for many fields + summary: (Deprecated) Get human-provided recorded planting events for many fields + tags: + - v1 + operationId: (Deprecated)Gethuman-providedrecordedplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/recorded/fields/{field-id}: + get: + description: (Deprecated) Get human-provided recorded planting events for one field + summary: (Deprecated) Get human-provided recorded planting events for one field + tags: + - v1 + operationId: (Deprecated)Gethuman-providedrecordedplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/all-events/fields/query: + post: + description: '**DEPRECATED - Please use POST /v3/fields/query**' + summary: (Deprecated) Get all planting events of all types for many fields + tags: + - v1 + operationId: (Deprecated)Getallplantingeventsofalltypesformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: user-agent + in: header + required: false + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/AllEventsFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v1/all-events/fields/{field-id}: + get: + description: '**DEPRECATED - Please use GET /v3/fields**' + summary: (Deprecated) Get all planting events of all types for one field + tags: + - v1 + operationId: (Deprecated)Getallplantingeventsofalltypesforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/AllEventsFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v2/validations/product-years/{product-year}: + get: + description: (Deprecated) Get planting-specific validations for a given product year + summary: (Deprecated) Get planting-specific validations for a given product year + tags: + - v2-validations + - v2 + operationId: Get(Deprecated)Getplanting-specificvalidationsforagivenproductyear + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: if-none-match + in: header + required: false + type: string + description: Etag identifier + - name: product-year + in: path + required: true + type: integer + format: int64 + description: '' + responses: + '304': + description: Not Modified + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/validations/seasons/{season}: + get: + description: (Deprecated) Get planting-specific validations for a given product year + summary: (Deprecated) Get planting-specific validations for a given product year + tags: + - v3-validations + - v3 + operationId: Get(Deprecated)Getplanting-specificvalidationsforagivenproductyear1 + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: if-none-match + in: header + required: false + type: string + description: Etag identifier + - name: season + in: path + required: true + type: string + description: '' + responses: + '304': + description: Not Modified + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/best/fields/{field-id}: + get: + description: '**DEPRECATED - There will be no further development work on /v3/best/fields/{field-id}**' + summary: (Deprecated) Best-available planting estimate for a field + tags: + - v3 + - v3-best + operationId: Get(Deprecated)Best-availableplantingestimateforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: season + in: query + required: false + type: string + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v3/best/fields/{field-id}/fmz/{fmz-id}: + get: + description: '**DEPRECATED - There will be no further work on /v3/best/fields/{fmz-id}**' + summary: (Deprecated) Best-available planting estimate for a field's FMZ zones + tags: + - v3 + - v3-best + operationId: Get(Deprecated)Best-availableplantingestimateforafield'sFMZzones + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: fmz-id + in: path + required: true + type: string + format: uuid + description: '' + - name: season + in: query + required: false + type: string + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestFmzResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v3/best/fields/query: + post: + description: '**DEPRECATED - There will be no further work on /fields/query**' + summary: (Deprecated) Best-available planting estimate for a field + tags: + - v3 + - v3-best + operationId: Post(Deprecated)Best-availableplantingestimateforafield1 + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + - name: season + in: query + required: false + type: string + description: '' + - name: start-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: end-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/best/fields/fmz/query: + post: + description: '**DEPRECATED - There will be no further work on /fields/fmz/query**' + summary: (Deprecated) Best-available planting estimate for a field's FMZ zones + tags: + - v3 + - v3-best + operationId: Post(Deprecated)Best-availableplantingestimateforafield'sFMZzones1 + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: FieldsFmzsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsFmzsQuery' + - name: season + in: query + required: false + type: string + description: '' + - name: event-type + in: query + required: false + enum: + - planned + - recorded + - all + - actual + type: string + - name: include-plantings + in: query + required: false + type: boolean + description: If false, exclude "plantings" to save bandwidth + responses: + '200': + description: '' + schema: + $ref: '#/definitions/BestFmzQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/recorded/events/query: + post: + description: (Deprecated) Get many human-provided recorded planting events by ID + summary: (Deprecated) Get many human-provided recorded planting events by ID + tags: + - v3 + - v3-recorded + operationId: Post(Deprecated)Getmanyhuman-providedrecordedplantingeventsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: RecordedEventQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventQueryRequest' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/recorded/events/{id}: + get: + description: (Deprecated) Get an individual human-provided recorded planting event + summary: (Deprecated) Get an individual human-provided recorded planting event + tags: + - v3 + - v3-recorded + operationId: Get(Deprecated)Getanindividualhuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: (Deprecated) Remove a human-provided recorded planting event + summary: (Deprecated) Remove a human-provided recorded planting event + tags: + - v3 + - v3-recorded + operationId: Delete(Deprecated)Removeahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: (Deprecated) PATCH a human-provided recorded planting event + summary: (Deprecated) PATCH a human-provided recorded planting event + tags: + - v3 + - v3-recorded + operationId: Patch(Deprecated)PATCHahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: RecordedEventPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: (Deprecated) Update a human-provided recorded planting event + summary: (Deprecated) Update a human-provided recorded planting event + tags: + - v3 + - v3-recorded + operationId: Put(Deprecated)Updateahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: RecordedEventInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RecordedEventInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/recorded/events: + post: + description: (Deprecated) Create a human-provided recorded planting event + summary: (Deprecated) Create a human-provided recorded planting event + tags: + - v3 + - v3-recorded + operationId: Post(Deprecated)Createahuman-providedrecordedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewRecordedEvent + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewRecordedEvent' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/RecordedEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/recorded/fields/query: + post: + description: (Deprecated) Get human-provided recorded planting events for many fields + summary: (Deprecated) Get human-provided recorded planting events for many fields + tags: + - v3 + - v3-recorded + operationId: Post(Deprecated)Gethuman-providedrecordedplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: season + in: query + required: false + type: string + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/recorded/fields/{field-id}: + get: + description: (Deprecated) Get human-provided recorded planting events for one field + summary: (Deprecated) Get human-provided recorded planting events for one field + tags: + - v3 + - v3-recorded + operationId: Get(Deprecated)Gethuman-providedrecordedplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: season + in: query + required: false + type: string + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RecordedEventFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/all-events/fields/query: + post: + description: (Deprecated) Get all planting events of all types for many fields + summary: (Deprecated) Get all planting events of all types for many fields + tags: + - v3 + - v3-all-events + operationId: Post(Deprecated)Getallplantingeventsofalltypesformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: user-agent + in: header + required: false + type: string + description: '' + - name: start-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: end-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: season + in: query + required: false + type: string + description: season + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/AllEventsFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/all-events/fields/{field-id}: + get: + description: (Deprecated) Get all planting events of all types for one field + summary: (Deprecated) Get all planting events of all types for one field + tags: + - v3 + - v3-all-events + operationId: Get(Deprecated)Getallplantingeventsofalltypesforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return events updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: start-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: end-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: season + in: query + required: false + type: string + description: season + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/AllEventsFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/migrations/seasons/{command}: + get: + description: (Deprecated) Kick off season DB migration + summary: (Deprecated) Kick off season DB migration + tags: + - v3 + - v3-migrations + operationId: (Deprecated)KickoffseasonDBmigration + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: if-none-match + in: header + required: false + type: string + description: Etag identifier + - name: init-uuid + in: header + required: false + type: string + description: UUID required to kick of migration + - name: command + in: path + required: true + enum: + - user-geo-table + - update-recorded + - season-table + - update-program + - geo-table + - program-season-table + - all + - update-actual + - update-profile + type: string + responses: + '304': + description: Not Modified + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/programs: + get: + description: (Deprecated) Get all planned planting programs + summary: (Deprecated) Get all planned planting programs + tags: + - v3-planned + - v3 + operationId: Get(Deprecated)Getallplannedplantingprograms + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: season + in: query + required: false + type: string + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-invisible + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + post: + description: (Deprecated) Create a planned planting event + summary: (Deprecated) Create a planned planting event + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)Createaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewProgram + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgram' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/programs/query: + post: + description: (Deprecated) Get many planned planting programs by ID + summary: (Deprecated) Get many planned planting programs by ID + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)GetmanyplannedplantingprogramsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: ProgramsQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramsQueryRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/programs/{id}: + get: + description: (Deprecated) Get an individual planned planting program + summary: (Deprecated) Get an individual planned planting program + tags: + - v3-planned + - v3 + operationId: Get(Deprecated)Getanindividualplannedplantingprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: (Deprecated) Remove a planned planting event + summary: (Deprecated) Remove a planned planting event + tags: + - v3-planned + - v3 + operationId: Delete(Deprecated)Removeaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: (Deprecated) Patch a planned planting event + summary: (Deprecated) Patch a planned planting event + tags: + - v3-planned + - v3 + operationId: Patch(Deprecated)Patchaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ProgramPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: (Deprecated) Update a planned planting event + summary: (Deprecated) Update a planned planting event + tags: + - v3-planned + - v3 + operationId: Put(Deprecated)Updateaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ProgramInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ProgramInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/ProgramResponse' + headers: {} + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/programs/{id}/fields: + get: + description: (Deprecated) Get list of field associatd with a program + summary: (Deprecated) Get list of field associatd with a program + tags: + - v3-planned + - v3 + operationId: Get(Deprecated)Getlistoffieldassociatdwithaprogram + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ProgramFieldsResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/fields/query: + post: + description: (Deprecated) Get planned planting events for many fields + summary: (Deprecated) Get planned planting events for many fields + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)Getplannedplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: season + in: query + required: false + type: string + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlanQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/fields/{field-id}: + get: + description: (Deprecated) Get planned planting events for one field + summary: (Deprecated) Get planned planting events for one field + tags: + - v3-planned + - v3 + operationId: Get(Deprecated)Getplannedplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: season + in: query + required: false + type: string + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/apply-program: + post: + description: (Deprecated) Apply a program to one or more fields + summary: (Deprecated) Apply a program to one or more fields + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)Applyaprogramtooneormorefields + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: season + in: query + required: true + type: string + description: '' + - name: ApplyProgramRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ApplyProgramRequest' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/remove-program: + post: + description: (Deprecated) Remove planting program from one or more fields + summary: (Deprecated) Remove planting program from one or more fields + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)Removeplantingprogramfromoneormorefields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: season + in: query + required: true + type: string + description: '' + - name: RemoveProgramRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/RemoveProgramRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/RemoveProgramResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/apply-prescription: + post: + description: 'GONE: Apply a prescription to a field' + summary: 'GONE: Apply a prescription to a field' + tags: + - v3-planned + - v3 + operationId: GONE:Applyaprescriptiontoafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: product-year + in: query + required: true + type: integer + format: int64 + description: '' + responses: + '500': + description: Server Error + headers: {} + /v3/planned/prescriptions/fields/query: + post: + description: 'GONE: Get all planned planting prescriptions for many fields' + summary: 'GONE: Get all planned planting prescriptions for many fields' + tags: + - v3-planned + - v3 + operationId: GONE:Getallplannedplantingprescriptionsformanyfields + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v3/planned/prescriptions/fields/{field-id}: + get: + description: 'GONE: Get all planned planting prescriptions for a field' + summary: 'GONE: Get all planned planting prescriptions for a field' + tags: + - v3-planned + - v3 + operationId: GONE:Getallplannedplantingprescriptionsforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: product-year + in: query + required: false + type: integer + format: int64 + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v3/planned/prescriptions/query: + post: + description: 'GONE: Get many planned planting prescriptions by ID' + summary: 'GONE: Get many planned planting prescriptions by ID' + tags: + - v3-planned + - v3 + operationId: GONE:GetmanyplannedplantingprescriptionsbyID + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + /v3/planned/prescriptions/{id}: + get: + description: 'GONE: Get an individual planned planting prescription' + summary: 'GONE: Get an individual planned planting prescription' + tags: + - v3-planned + - v3 + operationId: GONE:Getanindividualplannedplantingprescription + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + responses: + '500': + description: Server Error + headers: {} + delete: + description: 'GONE: Remove a planned planting event' + summary: 'GONE: Remove a planned planting event' + tags: + - v3-planned + - v3 + operationId: GONE:Removeaplannedplantingevent + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '500': + description: Server Error + headers: {} + put: + description: 'GONE: Update or create a planned planting event' + summary: 'GONE: Update or create a planned planting event' + tags: + - v3-planned + - v3 + operationId: GONE:Updateorcreateaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: 'GONE: Patch a planned planting event' + summary: 'GONE: Patch a planned planting event' + tags: + - v3-planned + - v3 + operationId: GONE:Patchaplannedplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/prescriptions: + post: + description: 'GONE: Create a planting prescription' + summary: 'GONE: Create a planting prescription' + tags: + - v3-planned + - v3 + operationId: GONE:Createaplantingprescription + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + responses: + '201': + description: '' + schema: + $ref: '#/definitions/PrescriptionResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/fields/{field-id}/programs: + patch: + description: (Deprecated) Patch a planting program for a field + summary: (Deprecated) Patch a planting program for a field + tags: + - v3-planned + - v3 + operationId: Patch(Deprecated)Patchaplantingprogramforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: NewProgramPatch + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgramPatch' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + post: + description: (Deprecated) Set a planting program for a field + summary: (Deprecated) Set a planting program for a field + tags: + - v3-planned + - v3 + operationId: Post(Deprecated)Setaplantingprogramforafield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + - name: NewProgram + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewProgram' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/FieldPlan' + headers: {} + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/planned/fields/{field-id}/prescriptions: + patch: + description: 'GONE: Patch a prescription for a field' + summary: 'GONE: Patch a prescription for a field' + tags: + - v3-planned + - v3 + operationId: GONE:Patchaprescriptionforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + post: + description: 'GONE: Set a prescription for a field' + summary: 'GONE: Set a prescription for a field' + tags: + - v3-planned + - v3 + operationId: GONE:Setaprescriptionforafield + deprecated: true + produces: + - application/json + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: field-id + in: path + required: true + type: string + description: '' + responses: + '400': + description: Bad Request + headers: {} + '500': + description: Server Error + headers: {} + /v3/actual/events/query: + post: + description: (Deprecated) Get many machine-observed actual planting events by ID + summary: (Deprecated) Get many machine-observed actual planting events by ID + tags: + - v3-actual + - v3 + operationId: Post(Deprecated)Getmanymachine-observedactualplantingeventsbyID + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + - name: ActualEventQueryRequest + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventQueryRequest' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/actual/events/{id}: + get: + description: (Deprecated) Get an individual machine-observed actual planting event + summary: (Deprecated) Get an individual machine-observed actual planting event + tags: + - v3-actual + - v3 + operationId: Get(Deprecated)Getanindividualmachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + delete: + description: (Deprecated) Remove a machine-observed actual planting event + summary: (Deprecated) Remove a machine-observed actual planting event + tags: + - v3-actual + - v3 + operationId: Delete(Deprecated)Removeamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/DeletedResponse' + headers: {} + '500': + description: Server Error + headers: {} + patch: + description: (Deprecated) Patch a machine-observed actual planting event + summary: (Deprecated) Patch a machine-observed actual planting event + tags: + - v3-actual + - v3 + operationId: Patch(Deprecated)Patchamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ActualEventPatchInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventPatchInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '404': + description: Not Found + headers: {} + '500': + description: Server Error + headers: {} + put: + description: (Deprecated) Update a machine-observed actual planting event + summary: (Deprecated) Update a machine-observed actual planting event + tags: + - v3-actual + - v3 + operationId: Put(Deprecated)Updateamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: id + in: path + required: true + type: string + format: uuid + description: '' + - name: ActualEventInput + in: body + required: true + description: '' + schema: + $ref: '#/definitions/ActualEventInput' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '201': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/actual/events: + post: + description: (Deprecated) Create a machine-observed actual planting event + summary: (Deprecated) Create a machine-observed actual planting event + tags: + - v3-actual + - v3 + operationId: Post(Deprecated)Createamachine-observedactualplantingevent + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: NewActualEvent + in: body + required: true + description: '' + schema: + $ref: '#/definitions/NewActualEvent' + responses: + '201': + description: '' + schema: + $ref: '#/definitions/ActualEventResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/actual/fields/query: + post: + description: (Deprecated) Get machine-observed actual planting events for many fields + summary: (Deprecated) Get machine-observed actual planting events for many fields + tags: + - v3-actual + - v3 + operationId: Post(Deprecated)Getmachine-observedactualplantingeventsformanyfields + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: start-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: end-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + - name: FieldsQuery + in: body + required: true + description: '' + schema: + $ref: '#/definitions/FieldsQuery' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventFieldsQueryResponse' + headers: {} + '500': + description: Server Error + headers: {} + /v3/actual/fields/{field-id}: + get: + description: (Deprecated) Get machine-observed actual planting events for one field + summary: (Deprecated) Get machine-observed actual planting events for one field + tags: + - v3-actual + - v3 + operationId: Get(Deprecated)Getmachine-observedactualplantingeventsforonefield + deprecated: true + produces: + - application/json + - application/x-yaml + - application/edn + - application/transit+json + - application/transit+msgpack + parameters: + - name: Authorization + in: header + required: false + type: string + description: Base64-encoded JWT in the format "Bearer " + - name: x-user-id + in: header + required: true + type: integer + format: int64 + description: id + - name: x-http-caller-id + in: header + required: true + type: string + description: caller id + - name: x-http-request-id + in: header + required: false + type: string + description: request-id + - name: x-authenticated-user-id + in: header + required: false + type: integer + format: int64 + description: user-id verified by auth service + - name: If-Modified-Since + in: header + required: false + type: string + description: Only return fields updated since this time http://www.freesoft.org/CIE/RFC/1945/58.htm + - name: field-id + in: path + required: true + type: string + description: '' + - name: start-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: end-time + in: query + required: false + type: string + description: Only return events with planting dates after this date + - name: include-deleted + in: query + required: false + type: boolean + description: '' + - name: include-source + in: query + required: false + type: boolean + description: '' + responses: + '200': + description: '' + schema: + $ref: '#/definitions/ActualEventFieldResponse' + headers: {} + '500': + description: Server Error + headers: {} +definitions: + ActualEventFieldResponse: + title: ActualEventFieldResponse + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + events: + type: array + items: + $ref: '#/definitions/ActualEventResponse' + required: + - field-id + - field-uuid + - events + ActualEventFieldsQueryResponse: + title: ActualEventFieldsQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/ActualEventFieldResponse' + required: + - results + ActualEventInput: + title: ActualEventInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + custom-crop-name: + type: string + updated-at: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + replant: + type: boolean + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + geometry: + $ref: '#/definitions/ActualEventInputGeometry' + planting-end-time: + type: string + season: + type: string + id: + type: string + format: uuid + population: + $ref: '#/definitions/Population' + area: + $ref: '#/definitions/Area' + source-id: + type: string + planting-start-time: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - seed-product + - planting-end-time + - id + - area + - planting-start-time + - field-id + ActualEventInputGeometry: + title: ActualEventInputGeometry + type: object + properties: + crs: + type: string + bbox: + type: array + items: + type: number + format: double + coordinates: + type: array + items: + type: number + format: double + type: + type: string + required: + - coordinates + - type + ActualEventPatchInput: + title: ActualEventPatchInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + custom-crop-name: + type: string + updated-at: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + replant: + type: boolean + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + geometry: + $ref: '#/definitions/ActualEventPatchInputGeometry' + planting-end-time: + type: string + season: + type: string + id: + type: string + format: uuid + population: + $ref: '#/definitions/Population' + area: + $ref: '#/definitions/Area' + source-id: + type: string + planting-start-time: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - id + - field-id + ActualEventPatchInputGeometry: + title: ActualEventPatchInputGeometry + type: object + properties: + crs: + type: string + bbox: + type: array + items: + type: number + format: double + coordinates: + type: array + items: + type: number + format: double + type: + type: string + required: + - coordinates + - type + ActualEventQueryRequest: + title: ActualEventQueryRequest + type: object + properties: + event-ids: + type: array + items: + type: string + format: uuid + required: + - event-ids + ActualEventQueryResponse: + title: ActualEventQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/ActualEventResponse' + required: + - results + ActualEventQueryResponseResultsGeometry: + title: ActualEventQueryResponseResultsGeometry + type: object + properties: + crs: + type: string + bbox: + type: array + items: + type: number + format: double + coordinates: + type: array + items: + type: number + format: double + type: + type: string + required: + - coordinates + - type + ActualEventResponse: + title: ActualEventResponse + type: object + properties: + seed-product: + $ref: '#/definitions/SeedProduct' + updated-at: + type: string + deleted: + type: boolean + field-uuid: + type: string + format: uuid + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + replant: + type: boolean + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + geometry: + $ref: '#/definitions/ActualEventQueryResponseResultsGeometry' + planting-end-time: + type: string + cropping-year: + type: integer + format: int64 + season: + type: string + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + id: + type: string + format: uuid + population: + $ref: '#/definitions/Population' + area: + $ref: '#/definitions/Area' + source-id: + type: string + planting-start-time: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + created-at: + type: string + required: + - seed-product + - updated-at + - deleted + - field-uuid + - planting-end-time + - updated-by + - created-by + - id + - area + - planting-start-time + - field-id + - created-at + AllEventsFieldResponse: + title: AllEventsFieldResponse + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + planned: + $ref: '#/definitions/AllEventsFieldsQueryResponseResultsPlanned' + actual: + type: array + items: + $ref: '#/definitions/ActualEventResponse' + recorded: + type: array + items: + $ref: '#/definitions/RecordedEventResponse' + required: + - field-id + - field-uuid + - planned + - actual + - recorded + AllEventsFieldsQueryResponse: + title: AllEventsFieldsQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/AllEventsFieldResponse' + required: + - results + AllEventsFieldsQueryResponseResultsPlanned: + title: AllEventsFieldsQueryResponseResultsPlanned + type: object + properties: + program: + $ref: '#/definitions/ProgramResponse' + prescription: + $ref: '#/definitions/PrescriptionResponse' + created-at: + type: string + created-by: + type: integer + format: int64 + updated-at: + type: string + updated-by: + type: integer + format: int64 + deleted: + type: boolean + ApplyProgramRequest: + title: ApplyProgramRequest + type: object + properties: + program-id: + type: string + format: uuid + field-ids: + type: array + items: + type: string + required: + - program-id + - field-ids + Area: + title: Area + type: object + properties: + q: + type: number + format: double + u: + type: string + default: hectare + required: + - q + - u + BestFmzQueryResponse: + title: BestFmzQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/BestFmzResponse' + required: + - results + BestFmzResponse: + title: BestFmzResponse + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + fmz-id: + type: string + format: uuid + event-type: + $ref: '#/definitions/EventType' + product-year: + type: integer + format: int64 + season: + type: string + zones: + type: array + items: + $ref: '#/definitions/BestFmzZoneResponse' + required: + - field-id + - field-uuid + - fmz-id + - event-type + - zones + BestFmzZoneResponse: + title: BestFmzZoneResponse + type: object + properties: + zone-id: + type: string + event-type: + $ref: '#/definitions/EventType' + dominant-planting: + $ref: '#/definitions/BestPlanting' + required: + - zone-id + - event-type + - dominant-planting + BestPlanting: + title: BestPlanting + type: object + properties: + seed-product: + $ref: '#/definitions/SeedProduct' + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + replant: + type: boolean + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + fmz-id: + type: string + format: uuid + season: + type: string + population: + $ref: '#/definitions/Population' + area: + $ref: '#/definitions/Area' + BestQueryResponse: + title: BestQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/BestResponse' + required: + - results + BestResponse: + title: BestResponse + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + updated-at: + type: string + event-type: + $ref: '#/definitions/EventType' + dominant-planting: + $ref: '#/definitions/BestPlanting' + product-year: + type: integer + format: int64 + season: + type: string + plantings: + type: array + items: + $ref: '#/definitions/BestPlanting' + required: + - field-id + - field-uuid + - updated-at + - event-type + - dominant-planting + DeletedResponse: + title: DeletedResponse + type: object + properties: + id: + type: string + format: uuid + deleted: + type: boolean + required: + - id + - deleted + FieldPlan: + title: FieldPlan + type: object + properties: + updated-at: + type: string + deleted: + type: boolean + field-uuid: + type: string + format: uuid + source-type: + type: string + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + prescription: + $ref: '#/definitions/PrescriptionResponse' + field-area: + $ref: '#/definitions/Area' + source-id: + type: string + field-id: + type: string + created-at: + type: string + program: + $ref: '#/definitions/ProgramResponse' + required: + - field-uuid + - field-area + - field-id + FieldPlanQueryResponse: + title: FieldPlanQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/FieldPlan' + required: + - results + FieldsFmzsQuery: + title: FieldsFmzsQuery + type: object + properties: + field-fmz-ids: + type: array + items: + $ref: '#/definitions/FieldsFmzsQueryFieldFmzIds' + required: + - field-fmz-ids + FieldsFmzsQueryFieldFmzIds: + title: FieldsFmzsQueryFieldFmzIds + type: object + properties: + field-id: + type: string + fmz-id: + type: string + format: uuid + required: + - field-id + - fmz-id + FieldsQuery: + title: FieldsQuery + type: object + properties: + field-ids: + type: array + items: + type: string + required: + - field-ids + NewActualEvent: + title: NewActualEvent + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + custom-crop-name: + type: string + updated-at: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + replant: + type: boolean + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + geometry: + $ref: '#/definitions/NewActualEventGeometry' + planting-end-time: + type: string + season: + type: string + population: + $ref: '#/definitions/Population' + area: + $ref: '#/definitions/Area' + source-id: + type: string + planting-start-time: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - seed-product + - planting-end-time + - area + - planting-start-time + - field-id + NewActualEventGeometry: + title: NewActualEventGeometry + type: object + properties: + crs: + type: string + bbox: + type: array + items: + type: number + format: double + coordinates: + type: array + items: + type: number + format: double + type: + type: string + required: + - coordinates + - type + NewProgram: + title: NewProgram + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + notes: + type: string + population: + $ref: '#/definitions/Population' + product-year: + type: integer + format: int64 + visible: + type: boolean + NewProgramPatch: + title: NewProgramPatch + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + notes: + type: string + population: + $ref: '#/definitions/Population' + product-year: + type: integer + format: int64 + visible: + type: boolean + NewRecordedEvent: + title: NewRecordedEvent + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + cropping-year: + type: integer + format: int64 + fmz-id: + type: string + format: uuid + season: + type: string + notes: + type: string + population: + $ref: '#/definitions/Population' + zone-id: + type: string + area: + $ref: '#/definitions/Area' + source-id: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - field-id + Population: + title: Population + type: object + properties: + q: + type: number + format: double + u: + $ref: '#/definitions/U' + required: + - q + - u + PrescriptionResponse: + title: PrescriptionResponse + type: object + properties: + updated-at: + type: string + deleted: + type: boolean + field-uuid: + type: string + format: uuid + name: + type: string + fmz-id: + type: string + format: uuid + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + id: + type: string + format: uuid + notes: + type: string + zones: + type: array + items: + $ref: '#/definitions/ZoneProgram' + field-id: + type: string + product-year: + type: integer + format: int64 + created-at: + type: string + required: + - field-uuid + - fmz-id + - id + - zones + - field-id + - product-year + ProgramFieldsResponse: + title: ProgramFieldsResponse + type: object + properties: + program-id: + type: string + format: uuid + field-ids: + type: array + items: + type: string + required: + - program-id + - field-ids + ProgramInput: + title: ProgramInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + product-year: + type: integer + format: int64 + visible: + type: boolean + required: + - id + ProgramPatchInput: + title: ProgramPatchInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + product-year: + type: integer + format: int64 + visible: + type: boolean + required: + - id + ProgramQuery: + title: ProgramQuery + type: object + properties: + field-ids: + type: array + items: + type: string + program-ids: + type: array + items: + type: integer + format: int64 + product-year: + type: integer + format: int64 + type: + $ref: '#/definitions/Type' + visible: + type: boolean + include-owned: {} + include-zones: {} + ProgramResponse: + title: ProgramResponse + type: object + properties: + seed-product: + $ref: '#/definitions/SeedProduct' + updated-at: + type: string + deleted: + type: boolean + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + source-id: + type: string + product-year: + type: integer + format: int64 + visible: + type: boolean + created-at: + type: string + required: + - id + ProgramsQueryRequest: + title: ProgramsQueryRequest + type: object + properties: + program-ids: + type: array + items: + type: string + format: uuid + required: + - program-ids + ProgramsQueryResponse: + title: ProgramsQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/ProgramResponse' + required: + - results + RM: + title: RM + type: object + properties: + q: + type: string + u: + type: string + required: + - q + - u + RecordedEventFieldResponse: + title: RecordedEventFieldResponse + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + events: + type: array + items: + $ref: '#/definitions/RecordedEventResponse' + required: + - field-id + - field-uuid + - events + RecordedEventFieldsQueryResponse: + title: RecordedEventFieldsQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/RecordedEventFieldResponse' + required: + - results + RecordedEventInput: + title: RecordedEventInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + cropping-year: + type: integer + format: int64 + fmz-id: + type: string + format: uuid + season: + type: string + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + zone-id: + type: string + area: + $ref: '#/definitions/Area' + source-id: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - id + - field-id + RecordedEventPatchInput: + title: RecordedEventPatchInput + type: object + properties: + seed-product: + $ref: '#/definitions/ValidatedSeedProduct' + updated-at: + type: string + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + source-type: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + cropping-year: + type: integer + format: int64 + fmz-id: + type: string + format: uuid + season: + type: string + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + zone-id: + type: string + area: + $ref: '#/definitions/Area' + source-id: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + required: + - id + - field-id + RecordedEventQueryRequest: + title: RecordedEventQueryRequest + type: object + properties: + event-ids: + type: array + items: + type: string + format: uuid + required: + - event-ids + RecordedEventQueryResponse: + title: RecordedEventQueryResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/RecordedEventResponse' + required: + - results + RecordedEventResponse: + title: RecordedEventResponse + type: object + properties: + seed-product: + $ref: '#/definitions/SeedProduct' + updated-at: + type: string + deleted: + type: boolean + date: + type: string + field-uuid: + type: string + format: uuid + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + cropping-year: + type: integer + format: int64 + fmz-id: + type: string + format: uuid + season: + type: string + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + id: + type: string + format: uuid + notes: + type: string + population: + $ref: '#/definitions/Population' + zone-id: + type: string + area: + $ref: '#/definitions/Area' + field-id: + type: string + product-year: + type: integer + format: int64 + created-at: + type: string + required: + - updated-at + - deleted + - field-uuid + - updated-by + - created-by + - id + - field-id + - created-at + RemoveProgramRequest: + title: RemoveProgramRequest + type: object + properties: + field-ids: + type: array + items: + type: string + required: + - field-ids + RemoveProgramResponse: + title: RemoveProgramResponse + type: object + properties: + results: + type: array + items: + $ref: '#/definitions/RemoveProgramResponseResults' + required: + - results + RemoveProgramResponseResults: + title: RemoveProgramResponseResults + type: object + properties: + field-id: + type: string + field-uuid: + type: string + format: uuid + product-year: + type: integer + format: int64 + required: + - field-id + - field-uuid + - product-year + SeedProduct: + title: SeedProduct + type: object + properties: + id: + type: integer + format: int64 + brand: + type: string + name: + type: string + Treatment: + title: Treatment + type: object + properties: + type: + type: string + q: + type: number + format: double + u: + type: string + required: + - type + - q + - u + UmberFieldPlantingProfile: + title: UmberFieldPlantingProfile + type: object + properties: + field-id: + type: string + product-year: + type: integer + format: int64 + created-at: + type: string + updated-at: + type: string + planting-program: + type: string + required: + - field-id + - product-year + UmberFieldPlantingProfiles: + title: UmberFieldPlantingProfiles + type: object + properties: + profiles: + type: array + items: + $ref: '#/definitions/UmberFieldPlantingProfile' + required: + - profiles + UmberFieldProfileQuery: + title: UmberFieldProfileQuery + type: object + properties: + product-year: + type: integer + format: int64 + field-ids: + type: array + items: + type: string + updated-since: + type: string + required: + - product-year + UmberPlantingEdit: + title: UmberPlantingEdit + type: object + properties: + seed-product: + $ref: '#/definitions/UmberPlantingEditsPlantingEditsSeedProduct' + updated-at: + type: string + liquid-application: + $ref: '#/definitions/UmberPlantingEditsPlantingEditsLiquidApplication' + target-yield: + $ref: '#/definitions/UmberPlantingEditsPlantingEditsTargetYield' + color: + type: string + name: + type: string + population: + $ref: '#/definitions/UmberPlantingEditsPlantingEditsPopulation' + zone-id: + type: string + visible: + type: boolean + crop: + type: string + created-at: + type: string + planting-date: + type: string + rm: + $ref: '#/definitions/UmberPlantingEditsPlantingEditsRm' + required: + - zone-id + UmberPlantingEdits: + title: UmberPlantingEdits + type: object + properties: + product-year: + type: integer + format: int64 + planting-edits: + type: array + items: + $ref: '#/definitions/UmberPlantingEdit' + required: + - product-year + - planting-edits + UmberPlantingEditsPlantingEditsLiquidApplication: + title: UmberPlantingEditsPlantingEditsLiquidApplication + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + - unit + UmberPlantingEditsPlantingEditsPopulation: + title: UmberPlantingEditsPlantingEditsPopulation + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + UmberPlantingEditsPlantingEditsRm: + title: UmberPlantingEditsPlantingEditsRm + type: object + properties: + value: + type: string + unit: + type: string + required: + - value + UmberPlantingEditsPlantingEditsSeedProduct: + title: UmberPlantingEditsPlantingEditsSeedProduct + type: object + properties: + brand: + type: string + name: + type: string + id: + type: integer + format: int64 + UmberPlantingEditsPlantingEditsTargetYield: + title: UmberPlantingEditsPlantingEditsTargetYield + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + UmberPlantingProgramResponse: + title: UmberPlantingProgramResponse + type: object + properties: + seed-product: + $ref: '#/definitions/UmberPlantingProgramsResponseProgramsSeedProduct' + updated-at: + type: string + liquid-application: + $ref: '#/definitions/UmberPlantingProgramsResponseProgramsLiquidApplication' + target-yield: + $ref: '#/definitions/UmberPlantingProgramsResponseProgramsTargetYield' + color: + type: string + name: + type: string + type: + type: string + default: planting-program + id: + type: string + population: + $ref: '#/definitions/UmberPlantingProgramsResponseProgramsPopulation' + product-year: + type: integer + format: int64 + visible: + type: boolean + crop: + type: string + created-at: + type: string + planting-date: + type: string + rm: + $ref: '#/definitions/UmberPlantingProgramsResponseProgramsRm' + required: + - type + - id + - product-year + UmberPlantingProgramsResponse: + title: UmberPlantingProgramsResponse + type: object + properties: + programs: + type: array + items: + $ref: '#/definitions/UmberPlantingProgramResponse' + required: + - programs + UmberPlantingProgramsResponseProgramsLiquidApplication: + title: UmberPlantingProgramsResponseProgramsLiquidApplication + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + - unit + UmberPlantingProgramsResponseProgramsPopulation: + title: UmberPlantingProgramsResponseProgramsPopulation + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + UmberPlantingProgramsResponseProgramsRm: + title: UmberPlantingProgramsResponseProgramsRm + type: object + properties: + value: + type: string + unit: + type: string + required: + - value + UmberPlantingProgramsResponseProgramsSeedProduct: + title: UmberPlantingProgramsResponseProgramsSeedProduct + type: object + properties: + brand: + type: string + name: + type: string + id: + type: integer + format: int64 + UmberPlantingProgramsResponseProgramsTargetYield: + title: UmberPlantingProgramsResponseProgramsTargetYield + type: object + properties: + value: + type: number + format: double + unit: + type: string + required: + - value + UmberProgramFieldsResponse: + title: UmberProgramFieldsResponse + type: object + properties: + field-profiles: + type: array + items: + $ref: '#/definitions/UmberProgramFieldsResponseFieldProfiles' + zone-profiles: + type: array + items: + $ref: '#/definitions/UmberProgramFieldsResponseZoneProfiles' + UmberProgramFieldsResponseFieldProfiles: + title: UmberProgramFieldsResponseFieldProfiles + type: object + properties: + field-id: + type: string + product-year: + type: integer + format: int64 + planting-program: + $ref: '#/definitions/UmberProgramFieldsResponseFieldProfilesPlantingProgram' + required: + - field-id + - product-year + - planting-program + UmberProgramFieldsResponseFieldProfilesPlantingProgram: + title: UmberProgramFieldsResponseFieldProfilesPlantingProgram + type: object + properties: + id: + type: string + required: + - id + UmberProgramFieldsResponseZoneProfiles: + title: UmberProgramFieldsResponseZoneProfiles + type: object + properties: + field-id: + type: string + fmz-id: + type: string + format: uuid + zone-id: + type: string + product-year: + type: integer + format: int64 + planting-program: + $ref: '#/definitions/UmberProgramFieldsResponseZoneProfilesPlantingProgram' + required: + - field-id + - fmz-id + - zone-id + - product-year + - planting-program + UmberProgramFieldsResponseZoneProfilesPlantingProgram: + title: UmberProgramFieldsResponseZoneProfilesPlantingProgram + type: object + properties: + id: + type: string + required: + - id + UmberZoneProfile: + title: UmberZoneProfile + type: object + properties: + fmz-id: + type: string + format: uuid + zone-id: + type: string + field-id: + type: string + product-year: + type: integer + format: int64 + created-at: + type: string + updated-at: + type: string + planting-program: + type: string + required: + - fmz-id + - zone-id + - field-id + - product-year + UmberZoneProfileResponse: + title: UmberZoneProfileResponse + type: object + properties: + profiles: + type: array + items: + $ref: '#/definitions/UmberZoneProfile' + required: + - profiles + UmberZoneProfilesQuery: + title: UmberZoneProfilesQuery + type: object + properties: + product-year: + type: integer + format: int64 + zone-ids: + type: array + items: + type: string + required: + - product-year + ValidatedSeedProduct: + title: ValidatedSeedProduct + type: object + properties: + id: + type: integer + format: int64 + brand: + type: string + name: + type: string + Yield: + title: Yield + type: object + properties: + q: + type: number + format: double + u: + type: string + required: + - q + - u + ZoneProgram: + title: ZoneProgram + type: object + properties: + seed-product: + $ref: '#/definitions/SeedProduct' + updated-at: + type: string + deleted: + type: boolean + target-yield: + $ref: '#/definitions/Yield' + date: + type: string + treatments: + type: array + items: + $ref: '#/definitions/Treatment' + name: + type: string + relative-maturity: + $ref: '#/definitions/RM' + crop-id: + type: integer + format: int64 + updated-by: + type: integer + format: int64 + created-by: + type: integer + format: int64 + notes: + type: string + population: + $ref: '#/definitions/Population' + zone-id: + type: string + area: + $ref: '#/definitions/Area' + product-year: + type: integer + format: int64 + visible: + type: boolean + created-at: + type: string + required: + - zone-id + - area + EventType: + title: EventType + type: string + enum: + - planned + - recorded + - all + - actual + Type: + title: Type + type: string + enum: + - planting-program + U: + title: U + type: string + enum: + - kg/hectare + - seed/hectare +tags: +- name: core + description: '' +- name: legacy nitro + description: '' +- name: legacy umber + description: '' +- name: v1 + description: '' +- name: v2-validations + description: '' +- name: v3-validations + description: '' +- name: v3 + description: '' +- name: v3-planned + description: '' +- name: v3-actual + description: '' diff --git a/go.mod b/go.mod index 122b6a8..ca02098 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/go-openapi/jsonpointer v0.20.2 github.com/go-openapi/loads v0.21.5 github.com/go-openapi/spec v0.20.14 - github.com/go-openapi/strfmt v0.22.0 + github.com/go-openapi/strfmt v0.22.1 github.com/go-openapi/swag v0.22.9 github.com/stretchr/testify v1.8.4 gopkg.in/yaml.v3 v3.0.1 @@ -16,13 +16,13 @@ require ( require ( github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/go-openapi/jsonreference v0.20.4 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - go.mongodb.org/mongo-driver v1.13.1 // indirect + go.mongodb.org/mongo-driver v1.14.0 // indirect ) go 1.19 diff --git a/go.sum b/go.sum index 4d9d9fe..b4c3b4b 100644 --- a/go.sum +++ b/go.sum @@ -14,25 +14,21 @@ github.com/go-openapi/loads v0.21.5 h1:jDzF4dSoHw6ZFADCGltDb2lE4F6De7aWSpe+IcsRz github.com/go-openapi/loads v0.21.5/go.mod h1:PxTsnFBoBe+z89riT+wYt3prmSBP6GDAQh2l9H1Flz8= github.com/go-openapi/spec v0.20.14 h1:7CBlRnw+mtjFGlPDRZmAMnq35cRzI91xj03HVyUi/Do= github.com/go-openapi/spec v0.20.14/go.mod h1:8EOhTpBoFiask8rrgwbLC3zmJfz4zsCUueRuPM6GNkw= -github.com/go-openapi/strfmt v0.22.0 h1:Ew9PnEYc246TwrEspvBdDHS4BVKXy/AOVsfqGDgAcaI= -github.com/go-openapi/strfmt v0.22.0/go.mod h1:HzJ9kokGIju3/K6ap8jL+OlGAbjpSv27135Yr9OivU4= +github.com/go-openapi/strfmt v0.22.1 h1:5Ky8cybT4576C6Ffc+8gYji/wRXCo6Ozm8RaWjPI6jc= +github.com/go-openapi/strfmt v0.22.1/go.mod h1:OfVoytIXJasDkkGvkb1Cceb3BPyMOwk1FgmyyEw7NYg= github.com/go-openapi/swag v0.22.9 h1:XX2DssF+mQKM2DHsbgZK74y/zj4mo9I99+89xUmuZCE= github.com/go-openapi/swag v0.22.9/go.mod h1:3/OXnFfnMAwBD099SwYRk7GD3xOrr1iL7d/XNLXVVwE= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -40,42 +36,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= -github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= -github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.mongodb.org/mongo-driver v1.13.1 h1:YIc7HTYsKndGK4RFzJ3covLz1byri52x0IoMB0Pt/vk= -go.mongodb.org/mongo-driver v1.13.1/go.mod h1:wcDf1JBCXy2mOW0bWHwO/IOYqdca1MPCwDtFu/Z9+eo= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80= +go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/schema_props.go b/schema_props.go index bbea4a3..497103d 100644 --- a/schema_props.go +++ b/schema_props.go @@ -100,7 +100,7 @@ func (s *schemaPropsValidator) Applies(source interface{}, _ reflect.Kind) bool func (s *schemaPropsValidator) Validate(data interface{}) *Result { var mainResult *Result - if s.Options.recycleValidators { + if s.Options.recycleResult { mainResult = poolOfResults.BorrowResult() } else { mainResult = new(Result) @@ -109,9 +109,7 @@ func (s *schemaPropsValidator) Validate(data interface{}) *Result { // Intermediary error results // IMPORTANT! messages from underlying validators - keepResultAnyOf := poolOfResults.BorrowResult() - keepResultOneOf := poolOfResults.BorrowResult() - keepResultAllOf := poolOfResults.BorrowResult() + var keepResultAnyOf, keepResultOneOf, keepResultAllOf *Result if s.Options.recycleValidators { defer func() { @@ -121,149 +119,200 @@ func (s *schemaPropsValidator) Validate(data interface{}) *Result { }() } - // Validates at least one in anyOf schemas - var firstSuccess *Result if len(s.anyOfValidators) > 0 { - var bestFailures *Result - succeededOnce := false - for _, anyOfSchema := range s.anyOfValidators { - result := anyOfSchema.Validate(data) - // We keep inner IMPORTANT! errors no matter what MatchCount tells us - keepResultAnyOf.Merge(result.keepRelevantErrors()) - if result.IsValid() { - bestFailures = nil - succeededOnce = true - firstSuccess = result - _ = keepResultAnyOf.cleared() + keepResultAnyOf = poolOfResults.BorrowResult() + s.validateAnyOf(data, mainResult, keepResultAnyOf) + } - break - } - // MatchCount is used to select errors from the schema with most positive checks - if bestFailures == nil || result.MatchCount > bestFailures.MatchCount { - bestFailures = result - } + if len(s.oneOfValidators) > 0 { + keepResultOneOf = poolOfResults.BorrowResult() + s.validateOneOf(data, mainResult, keepResultOneOf) + } + + if len(s.allOfValidators) > 0 { + keepResultAllOf = poolOfResults.BorrowResult() + s.validateAllOf(data, mainResult, keepResultAllOf) + } + + if s.notValidator != nil { + s.validateNot(data, mainResult) + } + + if s.Dependencies != nil && len(s.Dependencies) > 0 && reflect.TypeOf(data).Kind() == reflect.Map { + s.validateDependencies(data, mainResult) + } + + mainResult.Inc() + + // In the end we retain best failures for schema validation + // plus, if any, composite errors which may explain special cases (tagged as IMPORTANT!). + return mainResult.Merge(keepResultAllOf, keepResultOneOf, keepResultAnyOf) +} + +func (s *schemaPropsValidator) validateAnyOf(data interface{}, mainResult, keepResultAnyOf *Result) { + // Validates at least one in anyOf schemas + var bestFailures *Result + + for i, anyOfSchema := range s.anyOfValidators { + result := anyOfSchema.Validate(data) + if s.Options.recycleValidators { + s.anyOfValidators[i] = nil } + // We keep inner IMPORTANT! errors no matter what MatchCount tells us + keepResultAnyOf.Merge(result.keepRelevantErrors()) // merges (and redeems) a new instance of Result + + if result.IsValid() { + if bestFailures != nil && bestFailures.wantsRedeemOnMerge { + poolOfResults.RedeemResult(bestFailures) + } - if !succeededOnce { - mainResult.AddErrors(mustValidateAtLeastOneSchemaMsg(s.Path)) + _ = keepResultAnyOf.cleared() + mainResult.Merge(result) + + return } - if bestFailures != nil { - mainResult.Merge(bestFailures) - if firstSuccess != nil && firstSuccess.wantsRedeemOnMerge { - poolOfResults.RedeemResult(firstSuccess) + + // MatchCount is used to select errors from the schema with most positive checks + if bestFailures == nil || result.MatchCount > bestFailures.MatchCount { + if bestFailures != nil && bestFailures.wantsRedeemOnMerge { + poolOfResults.RedeemResult(bestFailures) } - } else if firstSuccess != nil { - mainResult.Merge(firstSuccess) + bestFailures = result + + continue + } + + if result.wantsRedeemOnMerge { + poolOfResults.RedeemResult(result) // this result is ditched } } + mainResult.AddErrors(mustValidateAtLeastOneSchemaMsg(s.Path)) + mainResult.Merge(bestFailures) +} + +func (s *schemaPropsValidator) validateOneOf(data interface{}, mainResult, keepResultOneOf *Result) { // Validates exactly one in oneOf schemas - if len(s.oneOfValidators) > 0 { - var bestFailures *Result - var firstSuccess *Result - validated := 0 - - for _, oneOfSchema := range s.oneOfValidators { - result := oneOfSchema.Validate(data) - // We keep inner IMPORTANT! errors no matter what MatchCount tells us - keepResultOneOf.Merge(result.keepRelevantErrors()) - if result.IsValid() { - validated++ - bestFailures = nil - if firstSuccess == nil { - firstSuccess = result - } - _ = keepResultOneOf.cleared() - continue - } - // MatchCount is used to select errors from the schema with most positive checks - if validated == 0 && (bestFailures == nil || result.MatchCount > bestFailures.MatchCount) { - bestFailures = result - } + var ( + firstSuccess, bestFailures *Result + validated int + ) + + for i, oneOfSchema := range s.oneOfValidators { + result := oneOfSchema.Validate(data) + if s.Options.recycleValidators { + s.oneOfValidators[i] = nil } - if validated != 1 { - var additionalMsg string - if validated == 0 { - additionalMsg = "Found none valid" - } else { - additionalMsg = fmt.Sprintf("Found %d valid alternatives", validated) - } + // We keep inner IMPORTANT! errors no matter what MatchCount tells us + keepResultOneOf.Merge(result.keepRelevantErrors()) // merges (and redeems) a new instance of Result - mainResult.AddErrors(mustValidateOnlyOneSchemaMsg(s.Path, additionalMsg)) - if bestFailures != nil { - mainResult.Merge(bestFailures) - } - if firstSuccess != nil && firstSuccess.wantsRedeemOnMerge { - poolOfResults.RedeemResult(firstSuccess) + if result.IsValid() { + validated++ + _ = keepResultOneOf.cleared() + + if firstSuccess == nil { + firstSuccess = result + } else if result.wantsRedeemOnMerge { + poolOfResults.RedeemResult(result) // this result is ditched } - } else if firstSuccess != nil { - mainResult.Merge(firstSuccess) + + continue + } + + // MatchCount is used to select errors from the schema with most positive checks + if validated == 0 && (bestFailures == nil || result.MatchCount > bestFailures.MatchCount) { if bestFailures != nil && bestFailures.wantsRedeemOnMerge { poolOfResults.RedeemResult(bestFailures) } + bestFailures = result + } else if result.wantsRedeemOnMerge { + poolOfResults.RedeemResult(result) // this result is ditched } } - // Validates all of allOf schemas - if len(s.allOfValidators) > 0 { - validated := 0 - - for _, allOfSchema := range s.allOfValidators { - result := allOfSchema.Validate(data) - // We keep inner IMPORTANT! errors no matter what MatchCount tells us - keepResultAllOf.Merge(result.keepRelevantErrors()) - if result.IsValid() { - validated++ - } - mainResult.Merge(result) + switch validated { + case 0: + mainResult.AddErrors(mustValidateOnlyOneSchemaMsg(s.Path, "Found none valid")) + mainResult.Merge(bestFailures) + // firstSucess necessarily nil + case 1: + mainResult.Merge(firstSuccess) + if bestFailures != nil && bestFailures.wantsRedeemOnMerge { + poolOfResults.RedeemResult(bestFailures) } - - if validated != len(s.allOfValidators) { - additionalMsg := "" - if validated == 0 { - additionalMsg = ". None validated" - } - - mainResult.AddErrors(mustValidateAllSchemasMsg(s.Path, additionalMsg)) + default: + mainResult.AddErrors(mustValidateOnlyOneSchemaMsg(s.Path, fmt.Sprintf("Found %d valid alternatives", validated))) + mainResult.Merge(bestFailures) + if firstSuccess != nil && firstSuccess.wantsRedeemOnMerge { + poolOfResults.RedeemResult(firstSuccess) } } +} - if s.notValidator != nil { - result := s.notValidator.Validate(data) +func (s *schemaPropsValidator) validateAllOf(data interface{}, mainResult, keepResultAllOf *Result) { + // Validates all of allOf schemas + var validated int + + for i, allOfSchema := range s.allOfValidators { + result := allOfSchema.Validate(data) + if s.Options.recycleValidators { + s.allOfValidators[i] = nil + } // We keep inner IMPORTANT! errors no matter what MatchCount tells us + keepResultAllOf.Merge(result.keepRelevantErrors()) if result.IsValid() { - mainResult.AddErrors(mustNotValidatechemaMsg(s.Path)) + validated++ } + mainResult.Merge(result) } - if s.Dependencies != nil && len(s.Dependencies) > 0 && reflect.TypeOf(data).Kind() == reflect.Map { - val := data.(map[string]interface{}) - for key := range val { - if dep, ok := s.Dependencies[key]; ok { - - if dep.Schema != nil { - mainResult.Merge( - newSchemaValidator(dep.Schema, s.Root, s.Path+"."+key, s.KnownFormats, s.Options).Validate(data), - ) - continue - } + switch validated { + case 0: + mainResult.AddErrors(mustValidateAllSchemasMsg(s.Path, ". None validated")) + case len(s.allOfValidators): + default: + mainResult.AddErrors(mustValidateAllSchemasMsg(s.Path, "")) + } +} + +func (s *schemaPropsValidator) validateNot(data interface{}, mainResult *Result) { + result := s.notValidator.Validate(data) + if s.Options.recycleValidators { + s.notValidator = nil + } + // We keep inner IMPORTANT! errors no matter what MatchCount tells us + if result.IsValid() { + mainResult.AddErrors(mustNotValidatechemaMsg(s.Path)) + } + if result.wantsRedeemOnMerge { + poolOfResults.RedeemResult(result) // this result is ditched + } +} - if len(dep.Property) > 0 { - for _, depKey := range dep.Property { - if _, ok := val[depKey]; !ok { - mainResult.AddErrors(hasADependencyMsg(s.Path, depKey)) - } - } +func (s *schemaPropsValidator) validateDependencies(data interface{}, mainResult *Result) { + val := data.(map[string]interface{}) + for key := range val { + dep, ok := s.Dependencies[key] + if !ok { + continue + } + + if dep.Schema != nil { + mainResult.Merge( + newSchemaValidator(dep.Schema, s.Root, s.Path+"."+key, s.KnownFormats, s.Options).Validate(data), + ) + continue + } + + if len(dep.Property) > 0 { + for _, depKey := range dep.Property { + if _, ok := val[depKey]; !ok { + mainResult.AddErrors(hasADependencyMsg(s.Path, depKey)) } } } } - - mainResult.Inc() - // In the end we retain best failures for schema validation - // plus, if any, composite errors which may explain special cases (tagged as IMPORTANT!). - return mainResult.Merge(keepResultAllOf, keepResultOneOf, keepResultAnyOf) } func (s *schemaPropsValidator) redeem() { @@ -272,16 +321,27 @@ func (s *schemaPropsValidator) redeem() { func (s *schemaPropsValidator) redeemChildren() { for _, v := range s.anyOfValidators { + if v == nil { + continue + } v.redeemChildren() v.redeem() } s.anyOfValidators = nil + for _, v := range s.allOfValidators { + if v == nil { + continue + } v.redeemChildren() v.redeem() } s.allOfValidators = nil + for _, v := range s.oneOfValidators { + if v == nil { + continue + } v.redeemChildren() v.redeem() } diff --git a/schema_props_test.go b/schema_props_test.go index 6badfde..5bcca79 100644 --- a/schema_props_test.go +++ b/schema_props_test.go @@ -55,7 +55,7 @@ func TestSchemaPropsValidator_EdgeCases(t *testing.T) { t.Run("validator should run once", func(t *testing.T) { // we should not do that: the pool chain list is populated with a duplicate: needs a reset t.Cleanup(resetPools) - require.Panics(t, func() { + require.NotPanics(t, func() { _ = s.Validate(data) }) }) diff --git a/spec.go b/spec.go index ee322a2..6ae2131 100644 --- a/spec.go +++ b/spec.go @@ -15,6 +15,8 @@ package validate import ( + "bytes" + "encoding/gob" "encoding/json" "fmt" "sort" @@ -675,17 +677,20 @@ func (s *SpecValidator) validateParameters() *Result { // TODO: should be done after param expansion res.Merge(s.checkUniqueParams(path, method, op)) - paramSchema, ok := s.schema.Definitions["parameter"] + origSchema, ok := s.schema.Definitions["parameter"] if !ok { panic("unexpected swagger schema: missing #/definitions/parameter") } + paramSchema, err := deepCloneSchema(origSchema) + if err != nil { + panic(fmt.Errorf("can't clone schema: %v", err)) + } for _, pr := range paramHelp.safeExpandedParamsFor(path, method, op.ID, res, s) { // An expanded parameter must validate its schema (an unexpanded $ref always passes high-level schema validation) schv := newSchemaValidator(¶mSchema, s.schema, fmt.Sprintf("%s.%s.parameters.%s", path, method, pr.Name), s.KnownFormats, s.schemaOptions) obj := swag.ToDynamicJSON(pr) - paramValidationResult := schv.Validate(obj) - res.Merge(paramValidationResult) + res.Merge(schv.Validate(obj)) // Validate pattern regexp for parameters with a Pattern property if _, err := compileRegexp(pr.Pattern); err != nil { @@ -829,3 +834,17 @@ func (s *SpecValidator) expandedAnalyzer() *analysis.Spec { } return s.analyzer } + +func deepCloneSchema(src spec.Schema) (spec.Schema, error) { + var b bytes.Buffer + if err := gob.NewEncoder(&b).Encode(src); err != nil { + return spec.Schema{}, err + } + + var dst spec.Schema + if err := gob.NewDecoder(&b).Decode(&dst); err != nil { + return spec.Schema{}, err + } + + return dst, nil +} diff --git a/spec_test.go b/spec_test.go index 3207839..a02fcd8 100644 --- a/spec_test.go +++ b/spec_test.go @@ -928,3 +928,13 @@ func Test_Examples(t *testing.T) { spew.Dump(res.Errors) } } + +func Test_2866(t *testing.T) { + fp := filepath.Join("fixtures", "bugs", "2866", "2866.yaml") + + doc, err := loads.Spec(fp) + require.NoError(t, err) + require.NotNil(t, doc) + + require.NoError(t, Spec(doc, strfmt.Default)) +}