--- openapi: 3.0.1 info: title: OpenAPI definition version: v1.4.0 servers: - url: http://localhost:8070/vendor description: Generated server url paths: "/v1/_update": post: tags: - vendor-controller operationId: update_1 requestBody: content: application/json: schema: "$ref": "#/components/schemas/VendorRequest" responses: '200': description: default response content: "*/*": schema: "$ref": "#/components/schemas/VendorResponse" "/v1/_create": post: tags: - vendor-controller operationId: create_1 requestBody: content: application/json: schema: "$ref": "#/components/schemas/VendorRequest" responses: '200': description: default response content: "*/*": schema: "$ref": "#/components/schemas/VendorResponse" "/v1/_search": post: tags: - vendor-controller operationId: search_1 requestBody: content: application/json: schema: type: object properties: requestInfoWrapper: "$ref": "#/components/schemas/RequestInfoWrapper" criteria: "$ref": "#/components/schemas/VendorSearchCriteria" responses: '200': description: default response content: "*/*": schema: "$ref": "#/components/schemas/VendorResponse" "/v1/_plainsearch": post: tags: - vendor-controller operationId: plainsearch requestBody: content: application/json: schema: type: object properties: requestInfoWrapper: "$ref": "#/components/schemas/RequestInfoWrapper" criteria: "$ref": "#/components/schemas/VendorSearchCriteria" responses: '200': description: default response content: "*/*": schema: "$ref": "#/components/schemas/VendorResponse" components: schemas: AuditDetails: type: object properties: createdBy: type: string lastModifiedBy: type: string createdTime: type: integer format: int64 lastModifiedTime: type: integer format: int64 Worker: type: object properties: id: type: string individualId: maxLength: 64 minLength: 0 type: string workerVendorStatus: type: string enum: - ACTIVE - INACTIVE - DISABLED additionalDetails: type: object PlainAccessRequest: type: object properties: recordId: type: string plainRequestFields: type: array items: type: string RequestInfo: type: object properties: apiId: type: string ver: type: string ts: type: integer format: int64 action: type: string did: type: string key: type: string msgId: type: string authToken: type: string correlationId: type: string plainAccessRequest: "$ref": "#/components/schemas/PlainAccessRequest" userInfo: "$ref": "#/components/schemas/User" Role: type: object properties: id: type: integer format: int64 name: maxLength: 128 minLength: 0 type: string code: maxLength: 50 minLength: 0 type: string tenantId: maxLength: 256 minLength: 0 type: string User: required: - gender - name type: object properties: id: type: integer format: int64 uuid: maxLength: 64 minLength: 0 type: string userName: maxLength: 64 minLength: 0 type: string password: maxLength: 64 minLength: 0 type: string salutation: type: string name: maxLength: 100 minLength: 0 pattern: "^[a-zA-Z0-9 \\-'`\\.]*$" type: string gender: type: string mobileNumber: type: string emailId: maxLength: 128 minLength: 0 type: string altContactNumber: maxLength: 50 minLength: 0 type: string pan: maxLength: 10 minLength: 0 type: string aadhaarNumber: pattern: "^[0-9]{12}$" type: string permanentAddress: maxLength: 300 minLength: 0 type: string permanentCity: maxLength: 300 minLength: 0 type: string permanentPinCode: maxLength: 10 minLength: 0 type: string correspondenceCity: maxLength: 300 minLength: 0 type: string correspondencePinCode: maxLength: 10 minLength: 0 type: string correspondenceAddress: maxLength: 300 minLength: 0 type: string active: type: boolean dob: type: integer format: int64 pwdExpiryDate: type: integer format: int64 locale: maxLength: 16 minLength: 0 type: string type: maxLength: 50 minLength: 0 type: string signature: maxLength: 36 minLength: 0 type: string accountLocked: type: boolean roles: type: array items: "$ref": "#/components/schemas/Role" fatherOrHusbandName: maxLength: 100 minLength: 0 type: string relationship: type: string enum: - FATHER - MOTHER - HUSBAND - OTHER bloodGroup: maxLength: 32 minLength: 0 type: string identificationMark: maxLength: 300 minLength: 0 type: string photo: maxLength: 36 minLength: 0 type: string createdBy: maxLength: 64 minLength: 0 type: string createdDate: type: integer format: int64 lastModifiedBy: maxLength: 64 minLength: 0 type: string lastModifiedDate: type: integer format: int64 otpReference: type: string tenantId: maxLength: 256 minLength: 0 type: string ResponseInfo: type: object properties: apiId: type: string ver: type: string ts: type: integer format: int64 resMsgId: type: string msgId: type: string status: type: string RequestInfoWrapper: type: object properties: RequestInfo: "$ref": "#/components/schemas/RequestInfo" Address: type: object properties: tenantId: type: string doorNo: type: string plotNo: type: string id: type: string landmark: type: string city: type: string district: type: string region: type: string state: type: string country: type: string pincode: type: string additionalDetails: type: object buildingName: type: string street: type: string locality: "$ref": "#/components/schemas/Boundary" geoLocation: "$ref": "#/components/schemas/GeoLocation" auditDetails: "$ref": "#/components/schemas/AuditDetails" Boundary: required: - code - name type: object properties: code: type: string name: type: string label: type: string latitude: type: string longitude: type: string children: type: array items: "$ref": "#/components/schemas/Boundary" materializedPath: type: string GeoLocation: type: object properties: id: type: string latitude: type: number format: double longitude: type: number format: double additionalDetails: type: object Vehicle: type: object properties: owner: "$ref": "#/components/schemas/User" id: type: string tenantId: type: string registrationNumber: type: string model: type: string type: type: string tankCapacity: type: integer format: int64 suctionType: type: string pollutionCertiValidTill: type: integer format: int64 InsuranceCertValidTill: type: integer format: int64 fitnessValidTill: type: integer format: int64 roadTaxPaidTill: type: integer format: int64 gpsEnabled: type: boolean additionalDetails: type: object source: type: string vendorVehicleStatus: type: string enum: - ACTIVE - INACTIVE - DISABLED status: type: string enum: - ACTIVE - INACTIVE - DISABLED auditDetails: "$ref": "#/components/schemas/AuditDetails" Vendor: type: object properties: id: type: string tenantId: maxLength: 64 minLength: 0 type: string name: maxLength: 128 minLength: 0 type: string address: "$ref": "#/components/schemas/Address" owner: "$ref": "#/components/schemas/User" vehicles: type: array items: "$ref": "#/components/schemas/Vehicle" workers: type: array items: "$ref": "#/components/schemas/Worker" additionalDetails: type: object source: type: string description: type: string ownerId: maxLength: 64 minLength: 0 type: string agencyType: maxLength: 128 minLength: 0 type: string paymentPreference: maxLength: 128 minLength: 0 type: string status: type: string enum: - ACTIVE - INACTIVE - DISABLED auditDetails: "$ref": "#/components/schemas/AuditDetails" VendorRequest: type: object properties: RequestInfo: "$ref": "#/components/schemas/RequestInfo" vendor: "$ref": "#/components/schemas/Vendor" VendorResponse: type: object properties: responseInfo: "$ref": "#/components/schemas/ResponseInfo" vendor: type: array items: "$ref": "#/components/schemas/Vendor" totalCount: type: integer format: int32 VendorSearchCriteria: type: object properties: empty: type: boolean offset: type: integer format: int32 limit: type: integer format: int32 tenantId: type: string mobileNumber: type: string vehicleType: type: string ownerIds: type: array items: type: string vehicleRegistrationNumber: type: array items: type: string vehicleIds: type: array items: type: string name: type: array items: type: string ids: type: array items: type: string vehicleCapacity: type: string status: type: array items: type: string driverIds: type: array items: type: string sortBy: type: string enum: - tenantId - mobileNumber - vehicleType - ownerIds - vehicleRegistrationNumber - vehicleIds - name - ids - vehicleCapacity - status - driverIds - createdTime - vendor_createdTime sortOrder: type: string enum: - ASC - DESC