aboutsummaryrefslogtreecommitdiff
path: root/pb/openapi.json
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-02-18 13:34:51 -0500
committerXe Iaso <me@xeiaso.net>2024-02-18 13:34:51 -0500
commit8d63fd1b351cf9ffd99555b21017cc503dd1d0fe (patch)
treee642b17c4a445006dc0e92025725ebf430f932b0 /pb/openapi.json
parent5a4d6d92e9d3c1483104f2adcc9085b64bd1871f (diff)
downloadxesite-8d63fd1b351cf9ffd99555b21017cc503dd1d0fe.tar.xz
xesite-8d63fd1b351cf9ffd99555b21017cc503dd1d0fe.zip
add an external API
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'pb/openapi.json')
-rw-r--r--pb/openapi.json61
1 files changed, 61 insertions, 0 deletions
diff --git a/pb/openapi.json b/pb/openapi.json
new file mode 100644
index 0000000..8db285c
--- /dev/null
+++ b/pb/openapi.json
@@ -0,0 +1,61 @@
+{
+ "components": {
+ "schemas": {
+ "xeiaso.net.BuildInfo": {
+ "properties": {
+ "build_time": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "commit": {
+ "type": "string"
+ },
+ "deno_version": {
+ "type": "string"
+ },
+ "go_version": {
+ "type": "string"
+ },
+ "xesite_version": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ },
+ "info": {
+ "title": "xeiaso.net API",
+ "version": "0.1"
+ },
+ "openapi": "3.0.0",
+ "paths": {
+ "/api/xeiaso.net.Meta/Metadata": {
+ "post": {
+ "requestBody": {
+ "content": {
+ "application/json": {}
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/xeiaso.net.BuildInfo"
+ }
+ }
+ },
+ "description": "Success"
+ }
+ },
+ "summary": "Metadata"
+ }
+ }
+ },
+ "servers": [
+ {
+ "url": "https://xeiaso.net"
+ }
+ ]
+} \ No newline at end of file