diff options
| author | Xe Iaso <me@xeiaso.net> | 2024-05-24 11:23:40 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2024-05-24 15:36:45 -0400 |
| commit | d69787e5c65378a54de622fafbcce2a08a5c21f5 (patch) | |
| tree | 7f9faf842aa469d3d696850446927fba48c9b6ac /pb/openapi.json | |
| parent | 4fe62ffff3d1cae0b9d53f720d8fcc581fdff8db (diff) | |
| download | xesite-d69787e5c65378a54de622fafbcce2a08a5c21f5.tar.xz xesite-d69787e5c65378a54de622fafbcce2a08a5c21f5.zip | |
pb: add mi definitions
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'pb/openapi.json')
| -rw-r--r-- | pb/openapi.json | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pb/openapi.json b/pb/openapi.json index dc45d90..0adc9a8 100644 --- a/pb/openapi.json +++ b/pb/openapi.json @@ -185,6 +185,56 @@ }, "type": "object" }, + "within.website.x.mi.Event": { + "description": "Event is a single event that Xe will be attending.", + "properties": { + "description": { + "description": "The description of the event", + "type": "string" + }, + "end_date": { + "description": "The day the event ends", + "format": "date-time", + "type": "string" + }, + "id": { + "description": "The ID of the event", + "format": "int32", + "type": "integer" + }, + "location": { + "description": "The location of the event (human-readable)", + "type": "string" + }, + "name": { + "description": "The name of the event", + "type": "string" + }, + "start_date": { + "description": "The day the event starts", + "format": "date-time", + "type": "string" + }, + "url": { + "description": "The URL for the event", + "type": "string" + } + }, + "type": "object" + }, + "within.website.x.mi.EventFeed": { + "description": "A feed of events, result from mi query.", + "properties": { + "events": { + "description": "The events in the feed", + "items": { + "$ref": "#/components/schemas/within.website.x.mi.Event" + }, + "type": "array" + } + }, + "type": "object" + }, "xeiaso.net.BuildInfo": { "description": "BuildInfo contains metadata about a build of the site.", "properties": { @@ -220,6 +270,33 @@ }, "openapi": "3.0.0", "paths": { + "/api/xeiaso.net.Events/Get": { + "post": { + "description": "\nGet fetches the current feed of upcoming events.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/google.protobuf.Empty" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/within.website.x.mi.EventFeed" + } + } + }, + "description": "Success" + } + }, + "summary": "Get" + } + }, "/api/xeiaso.net.Feed/Get": { "post": { "description": "\nGet fetches the current feed of posts.", |
