openapi: 3.2.0 info: title: 701x API V1 Season API description: 701x API version: v1 tags: - name: Season paths: /Season/SeasonDataByFilter: get: tags: - Season parameters: - name: top in: query schema: type: - integer - 'null' format: int32 - name: orderBy in: query schema: type: - string - 'null' - name: offset in: query schema: type: - integer - 'null' format: int32 - name: fetch in: query schema: type: - integer - 'null' format: int32 - name: CompanyId in: query schema: type: string format: uuid - name: FarmId in: query schema: type: - string - 'null' format: uuid - name: LessThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenDeletedByDate in: query schema: type: - string - 'null' format: date-time responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get season season data by filter x-summary-source: derived operationId: getSeasonSeasonDataByFilter x-operation-id-source: derived /Season/{id}: get: tags: - Season parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get season by id x-summary-source: derived operationId: getSeasonById x-operation-id-source: derived put: tags: - Season parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' application/*+json: schema: $ref: '#/components/schemas/Season_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace season by id x-summary-source: derived operationId: putSeasonById x-operation-id-source: derived delete: tags: - Season parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete season by id x-summary-source: derived operationId: deleteSeasonById x-operation-id-source: derived /Season: post: tags: - Season requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' application/*+json: schema: $ref: '#/components/schemas/Season_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Season_Master' application/json: schema: $ref: '#/components/schemas/Season_Master' text/json: schema: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create season x-summary-source: derived operationId: postSeason x-operation-id-source: derived /Season/MassInsert: post: tags: - Season requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create season mass insert x-summary-source: derived operationId: postSeasonMassInsert x-operation-id-source: derived /Season/MassUpdate: post: tags: - Season requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create season mass update x-summary-source: derived operationId: postSeasonMassUpdate x-operation-id-source: derived /Season/MassDelete: post: tags: - Season requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Season_Master' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create season mass delete x-summary-source: derived operationId: postSeasonMassDelete x-operation-id-source: derived /Season/AutoGenerateSeasons: post: tags: - Season requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/AutoGenSeasonsArgs' application/json: schema: $ref: '#/components/schemas/AutoGenSeasonsArgs' text/json: schema: $ref: '#/components/schemas/AutoGenSeasonsArgs' application/*+json: schema: $ref: '#/components/schemas/AutoGenSeasonsArgs' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Season_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Season_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create season auto generate seasons x-summary-source: derived operationId: postSeasonAutoGenerateSeasons x-operation-id-source: derived components: schemas: Season_Master: type: object properties: id: type: string format: uuid companyId: type: - string - 'null' format: uuid farmId: type: - string - 'null' format: uuid description: type: - string - 'null' fromDate: type: - string - 'null' format: date-time toDate: type: - string - 'null' format: date-time calvingFromDate: type: - string - 'null' format: date-time calvingToDate: type: - string - 'null' format: date-time companyDescription: type: - string - 'null' farmDescription: type: - string - 'null' createdByDate: type: - string - 'null' format: date-time createdByUserId: type: - string - 'null' format: uuid createdByName: type: - string - 'null' lastUpdatedByDate: type: - string - 'null' format: date-time lastUpdatedByUserId: type: - string - 'null' format: uuid lastUpdatedByName: type: - string - 'null' inActiveDate: type: - string - 'null' format: date-time lastSyncEpoch: type: - integer - 'null' format: int64 deleteSyncEpoch: type: - integer - 'null' format: int64 isNew: type: boolean isUpdate: type: boolean isDelete: type: boolean error: type: - string - 'null' additionalProperties: false AutoGenSeasonsArgs: type: object properties: companyId: type: string format: uuid farmId: type: - string - 'null' format: uuid minDateSpan: type: integer format: int32 yearsBack: type: integer format: int32 yearsAhead: type: integer format: int32 save: type: boolean adjustDates: type: boolean additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://login.701x.com/connect/authorize tokenUrl: https://login.701x.com/connect/token scopes: api1: Demo API - full access