Skip to content

Commit

Permalink
[skip ci] ✨ Update specification files
Browse files Browse the repository at this point in the history
  • Loading branch information
noelbot committed Nov 2, 2024
1 parent ac4f15b commit c9068a3
Showing 1 changed file with 19 additions and 108 deletions.
127 changes: 19 additions & 108 deletions assets/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,60 +121,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Represents a response object for all REST endpoints.",
"required": ["success"],
"properties": {
"data": {
"type": "object",
"description": "Represents the response for the `GET /info` REST handler.",
"required": [
"distribution",
"commit_sha",
"build_date",
"product",
"version",
"vendor"
],
"properties": {
"build_date": {
"type": "string",
"description": "Build date in RFC3339 format"
},
"commit_sha": {
"type": "string",
"description": "The commit hash from the Git repository."
},
"distribution": {
"$ref": "#/components/schemas/Distribution",
"description": "The distribution the server is running off from"
},
"product": {
"type": "string",
"description": "Product name. Will always be \"charted-server\""
},
"vendor": {
"type": "string",
"description": "Vendor of charted-server, will always be \"Noelware, LLC.\""
},
"version": {
"type": "string",
"description": "Valid SemVer 2 of the current version of this instance"
}
}
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Error"
},
"description": "If the request failed, this is a list of errors as a \"stacktrace.\" `success` is always\n*false*; if not the case, blame it on Noel."
},
"success": {
"type": "boolean",
"description": "Was the request a success or not?"
}
}
"$ref": "#/components/schemas/InfoResponse"
}
}
}
Expand Down Expand Up @@ -346,60 +293,7 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Represents a response object for all REST endpoints.",
"required": ["success"],
"properties": {
"data": {
"type": "object",
"description": "Represents the response for the `GET /info` REST handler.",
"required": [
"distribution",
"commit_sha",
"build_date",
"product",
"version",
"vendor"
],
"properties": {
"build_date": {
"type": "string",
"description": "Build date in RFC3339 format"
},
"commit_sha": {
"type": "string",
"description": "The commit hash from the Git repository."
},
"distribution": {
"$ref": "#/components/schemas/Distribution",
"description": "The distribution the server is running off from"
},
"product": {
"type": "string",
"description": "Product name. Will always be \"charted-server\""
},
"vendor": {
"type": "string",
"description": "Vendor of charted-server, will always be \"Noelware, LLC.\""
},
"version": {
"type": "string",
"description": "Valid SemVer 2 of the current version of this instance"
}
}
},
"errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Error"
},
"description": "If the request failed, this is a list of errors as a \"stacktrace.\" `success` is always\n*false*; if not the case, blame it on Noel."
},
"success": {
"type": "boolean",
"description": "Was the request a success or not?"
}
}
"$ref": "#/components/schemas/InfoResponse"
}
}
}
Expand Down Expand Up @@ -1046,6 +940,23 @@
}
}
},
"InfoResponse": {
"type": "object",
"description": "Response datatype for the `Info` type",
"required": ["success"],
"properties": {
"data": { "$ref": "#/components/schemas/Info" },
"errors": {
"type": "array",
"items": { "$ref": "#/components/schemas/Error" },
"description": "If the request failed, this is a list of errors as a \"stacktrace.\" `success` is always\n*false*; if not the case, blame it on Noel."
},
"success": {
"type": "boolean",
"description": "Was the request a success or not?"
}
}
},
"Main": {
"type": "object",
"description": "Response object for the `GET /` REST controller.",
Expand Down

0 comments on commit c9068a3

Please sign in to comment.