"description": ""
},
"400": {
- "description": "Bad Request",
+ "description": "Problem as defined in https://tools.ietf.org/html/rfc7807",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/ErrorInfo"
+ },
+ "headers": {
+ "Content-Type": {
+ "type": "string",
+ "description": "application/problem+json"
+ }
}
}
}
"/health_check": {
"get": {
"description": "Get the status of the producer. Will show if the producer has registered in ICS.",
+ "produces": [
+ "application/json"
+ ],
"tags": [
"Data producer (callbacks)"
],
"summary": "Get status",
"responses": {
"200": {
- "description": ""
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/"
+ }
}
}
}
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/jobs.JobInfo"
+ "$ref": "#/definitions/JobInfo"
}
}
],
"description": ""
},
"400": {
- "description": "Bad Request",
+ "description": "Problem as defined in https://tools.ietf.org/html/rfc7807",
"schema": {
- "type": "string"
+ "$ref": "#/definitions/ErrorInfo"
+ },
+ "headers": {
+ "Content-Type": {
+ "type": "string",
+ "description": "application/problem+json"
+ }
}
}
}
}
},
"definitions": {
- "jobs.BufferTimeout": {
+ "": {
+ "type": "object",
+ "properties": {
+ "registeredStatus": {
+ "description": "The registration status of the producer in Information Coordinator Service. Either `registered` or `not registered`",
+ "type": "string",
+ "example": "registered"
+ }
+ }
+ },
+ "BufferTimeout": {
"type": "object",
"properties": {
"maxSize": {
}
}
},
- "jobs.JobInfo": {
+ "ErrorInfo": {
+ "type": "object",
+ "properties": {
+ "detail": {
+ "description": "A human-readable explanation specific to this occurrence of the problem.",
+ "type": "string",
+ "example": "Info job type not found"
+ },
+ "instance": {
+ "description": "A URI reference that identifies the specific occurrence of the problem.",
+ "type": "string"
+ },
+ "status": {
+ "description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
+ "type": "integer",
+ "example": 400
+ },
+ "title": {
+ "description": "A short, human-readable summary of the problem type.",
+ "type": "string"
+ },
+ "type": {
+ "description": "A URI reference that identifies the problem type.",
+ "type": "string"
+ }
+ }
+ },
+ "JobInfo": {
"type": "object",
"properties": {
"info_job_data": {
- "$ref": "#/definitions/jobs.Parameters"
+ "$ref": "#/definitions/Parameters"
},
"info_job_identity": {
"type": "string"
}
}
},
- "jobs.Parameters": {
+ "Parameters": {
"type": "object",
"properties": {
"bufferTimeout": {
- "$ref": "#/definitions/jobs.BufferTimeout"
+ "$ref": "#/definitions/BufferTimeout"
}
}
}