+{"components":{"schemas":{"ErrorDetail":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string"},"message":{"description":"Error message text","type":"string"},"value":{"description":"The value at the given location"}},"type":"object"},"ErrorModel":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/api/schemas/ErrorModel.json"],"format":"uri","readOnly":true,"type":"string"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem.","examples":["Property foo is required but is missing."],"type":"string"},"errors":{"description":"Optional list of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"},"type":["array","null"]},"instance":{"description":"A URI reference that identifies the specific occurrence of the problem.","examples":["https://example.com/error-log/abc123"],"format":"uri","type":"string"},"status":{"description":"HTTP status code","examples":[400],"format":"int64","type":"integer"},"title":{"description":"A short, human-readable summary of the problem type. This value should not change between occurrences of the error.","examples":["Bad Request"],"type":"string"},"type":{"default":"about:blank","description":"A URI reference to human-readable documentation for the error.","examples":["https://example.com/errors/example"],"format":"uri","type":"string"}},"type":"object"},"Information":{"additionalProperties":false,"properties":{"name":{"type":"string"},"repo":{"type":"string"},"version":{"type":"string"}},"required":["name","version","repo"],"type":"object"},"JobsView":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["https://example.com/api/schemas/JobsView.json"],"format":"uri","readOnly":true,"type":"string"},"cron":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"runs":{"items":{"$ref":"#/components/schemas/RunsView"},"type":["array","null"]}},"required":["id","name","cron","runs"],"type":"object"},"ListLogsByRunIDRow":{"additionalProperties":false,"properties":{"created_at":{"format":"int64","type":"integer"},"created_at_time":{},"message":{"type":"string"},"run_id":{"format":"int64","type":"integer"},"severity_id":{"format":"int64","type":"integer"}},"required":["created_at","run_id","severity_id","message","created_at_time"],"type":"object"},"NullInt64":{"additionalProperties":false,"properties":{"Int64":{"format":"int64","type":"integer"},"Valid":{"type":"boolean"}},"required":["Int64","Valid"],"type":"object"},"NullString":{"additionalProperties":false,"properties":{"String":{"type":"string"},"Valid":{"type":"boolean"}},"required":["String","Valid"],"type":"object"},"RunsView":{"additionalProperties":false,"properties":{"duration":{"$ref":"#/components/schemas/NullInt64"},"end_time":{"$ref":"#/components/schemas/NullInt64"},"fmt_end_time":{"$ref":"#/components/schemas/NullString"},"fmt_start_time":{"type":"string"},"id":{"format":"int64","type":"integer"},"job_id":{"type":"string"},"logs":{"items":{"$ref":"#/components/schemas/ListLogsByRunIDRow"},"type":["array","null"]},"start_time":{"format":"int64","type":"integer"},"status_id":{"format":"int64","type":"integer"}},"required":["id","job_id","status_id","start_time","end_time","fmt_start_time","fmt_end_time","duration","logs"],"type":"object"}}},"info":{"title":"GoCron API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/jobs":{"get":{"description":"Get jobs with run details but no logs.","operationId":"get-jobs","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JobsView"},"type":["array","null"]}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Get jobs","tags":["Jobs"]},"post":{"description":"Start all jobs in order of name.","operationId":"post-jobs","responses":{"204":{"description":"No Content"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Start jobs","tags":["Jobs"]}},"/api/jobs/{name}":{"get":{"description":"Get job with run details and logs.","operationId":"get-job","parameters":[{"description":"job name","in":"path","name":"name","required":true,"schema":{"description":"job name","maxLength":255,"type":"string"}},{"description":"number of runs to return","explode":false,"in":"query","name":"limit","schema":{"default":5,"description":"number of runs to return","format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsView"}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Get job","tags":["Jobs"]},"post":{"description":"Start single job.","operationId":"post-job","parameters":[{"description":"job name","in":"path","name":"name","required":true,"schema":{"description":"job name","maxLength":255,"type":"string"}}],"responses":{"204":{"description":"No Content"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Start job","tags":["Jobs"]}},"/api/notify":{"post":{"description":"Send a test notification to the configured URL.","operationId":"post-notify","responses":{"204":{"description":"No Content"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Test notification","tags":["Notify"]}},"/api/versions":{"get":{"description":"Get installed versions of software.","operationId":"get-versions","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Information"},"type":["array","null"]}}},"description":"OK"},"default":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Error"}},"summary":"Get installed versions","tags":["Software"]}}}}
0 commit comments