diff --git a/OPENAPI_DOC.yml b/OPENAPI_DOC.yml index 2eb45ecb..ef9df763 100644 --- a/OPENAPI_DOC.yml +++ b/OPENAPI_DOC.yml @@ -75,6 +75,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -144,6 +150,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -213,6 +225,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -287,6 +305,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -351,6 +375,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -425,6 +455,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -496,6 +532,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -625,6 +667,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -694,6 +742,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -770,6 +824,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -844,6 +904,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -908,6 +974,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -982,6 +1054,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1091,6 +1169,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1160,6 +1244,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1229,6 +1319,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1303,6 +1399,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1367,6 +1469,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1441,6 +1549,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1505,6 +1619,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1615,6 +1735,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1684,6 +1810,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1753,6 +1885,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1827,6 +1965,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1891,6 +2035,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -1965,6 +2115,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2066,6 +2222,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2135,6 +2297,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2204,6 +2372,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2278,6 +2452,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2342,6 +2522,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2416,6 +2602,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2545,6 +2737,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2614,6 +2812,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2683,6 +2887,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2757,6 +2967,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2821,6 +3037,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -2895,6 +3117,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3063,6 +3291,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3132,6 +3366,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3201,6 +3441,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3275,6 +3521,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3339,10 +3591,16 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' - 403: - description: Forbidden - 404: - description: Not Found + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: + description: Forbidden + 404: + description: Not Found content: application/json: schema: @@ -3413,6 +3671,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3485,6 +3749,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3556,6 +3826,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3621,6 +3897,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3692,6 +3974,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3800,6 +4088,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3869,6 +4163,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -3938,6 +4238,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4012,6 +4318,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4076,6 +4388,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4150,6 +4468,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4258,6 +4582,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4327,6 +4657,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4396,6 +4732,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4470,6 +4812,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4534,6 +4882,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4608,6 +4962,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4716,6 +5076,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4785,6 +5151,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4854,6 +5226,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4928,6 +5306,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -4992,6 +5376,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5066,6 +5456,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5132,6 +5528,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5201,6 +5603,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5270,6 +5678,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5344,6 +5758,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5408,6 +5828,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5482,6 +5908,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5558,6 +5990,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5627,6 +6065,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5728,6 +6172,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5801,6 +6251,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5867,6 +6323,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -5941,6 +6403,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6013,6 +6481,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6092,6 +6566,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6188,6 +6668,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6255,6 +6741,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6333,6 +6825,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6404,6 +6902,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6471,6 +6975,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6572,6 +7082,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6641,6 +7157,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6712,6 +7234,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6781,6 +7309,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6855,6 +7389,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6919,6 +7459,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -6993,6 +7539,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7114,6 +7666,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7183,6 +7741,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7258,6 +7822,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7332,6 +7902,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7396,6 +7972,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7470,6 +8052,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7539,6 +8127,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7609,6 +8203,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7679,6 +8279,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7735,7 +8341,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NamedTuple_compilation_output__String_' + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 200: description: OK 409: @@ -7858,6 +8464,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7927,6 +8539,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -7996,6 +8614,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8070,6 +8694,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8134,6 +8764,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8208,6 +8844,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8292,6 +8934,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8429,6 +9077,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8498,6 +9152,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8573,6 +9233,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8647,6 +9313,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8711,6 +9383,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8785,6 +9463,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8856,6 +9540,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8927,6 +9617,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -8992,6 +9688,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9057,6 +9759,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9138,6 +9846,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9208,6 +9922,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9283,6 +10003,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9352,6 +10078,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9424,6 +10156,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9597,6 +10335,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9666,6 +10410,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9741,6 +10491,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9817,9 +10573,15 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' - 403: - description: Forbidden - 404: + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: + description: Forbidden + 404: description: Not Found content: application/json: @@ -9900,6 +10662,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -9965,6 +10733,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10048,6 +10822,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10119,6 +10899,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10193,6 +10979,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10264,6 +11056,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10338,6 +11136,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10411,6 +11215,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10482,6 +11292,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10553,6 +11369,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10639,6 +11461,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10708,6 +11536,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10785,6 +11619,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10869,6 +11709,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -10949,6 +11795,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11016,6 +11868,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11076,6 +11934,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11145,6 +12009,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11250,6 +12120,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11319,6 +12195,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11388,6 +12270,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11462,6 +12350,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11526,6 +12420,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11600,6 +12500,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11683,6 +12589,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11752,6 +12664,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11821,6 +12739,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11890,6 +12814,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -11954,6 +12884,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12030,6 +12966,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12094,6 +13036,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12158,6 +13106,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12222,6 +13176,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12287,6 +13247,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12347,6 +13313,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12407,6 +13379,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12477,6 +13455,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12541,6 +13525,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12608,6 +13598,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12692,6 +13688,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12773,6 +13775,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -12851,7 +13859,13 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' - 403: + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: description: Forbidden 404: description: Not Found @@ -12923,6 +13937,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13001,6 +14021,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13092,6 +14118,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13182,6 +14214,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13245,6 +14283,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13333,6 +14377,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13392,6 +14442,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13457,6 +14513,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13565,6 +14627,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13634,6 +14702,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13703,6 +14777,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13777,6 +14857,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13841,6 +14927,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -13915,6 +15007,319 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: + description: Forbidden + 404: + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 408: + description: Request Timeout + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 400: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 422: + description: Unprocessable Entity + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 406: + description: Not Acceptable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + 415: + description: Unsupported Media Type + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + /api/engine/v2/public_events/guest_token/{system_id}: + post: + summary: Issues a short-lived guest JWT after verifying the reCAPTCHA challenge. + description: 'Issues a short-lived guest JWT after verifying the reCAPTCHA challenge. + + + The resulting token is scoped to the requested public system and grants: + + - read access to the cached `:public_events` driver status + + - the ability to call `register_attendee` via the `/register` route + + + Mirrors the WebRTC `guest_entry` flow: + + - authority.internals["recaptcha_secret"] → live Google verification + + - authority.internals["recaptcha_skip"] = true → skip (dev / test only)' + tags: + - PublicEvents + operationId: PlaceOS::Api::PublicEvents_guest_token + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__PublicEvents__TokenRequest' + required: true + parameters: + - name: system_id + in: path + required: true + schema: + type: string + responses: + 200: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/String' + 409: + description: Conflict + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: + description: Forbidden + 404: + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 408: + description: Request Timeout + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 400: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 422: + description: Unprocessable Entity + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 406: + description: Not Acceptable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + 415: + description: Unsupported Media Type + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + /api/engine/v2/public_events/{system_id}/events: + get: + summary: Returns the cached list of public events for the given system. + description: 'Returns the cached list of public events for the given system. + + + Reads the `:public_events` status key directly from Redis — no live + + driver round-trip is made. The response is sourced from the cache that + + the PublicEvents driver maintains via its Bookings subscription. + + + Guest JWTs are accepted provided the system id appears in their roles.' + tags: + - PublicEvents + operationId: PlaceOS::Api::PublicEvents_index + parameters: + - name: system_id + in: path + required: true + schema: + type: string + - name: q + in: query + description: returns results based on a [simple query string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html) + schema: + type: string + - name: limit + in: query + description: the maximum number of results to return + example: "10000" + schema: + type: integer + format: UInt32 + - name: offset + in: query + description: deprecated, the starting offset of the result set. Used to implement + pagination + schema: + type: integer + format: UInt32 + - name: ref + in: query + description: a token for accessing the next page of results, provided in the + `Link` header + schema: + type: string + nullable: true + - name: fields + in: query + description: (Optional, comma separated array of strings) Array of fields + you wish to search. Accepts wildcard expresssions and boost relevance score + for matches for particular field using a caret ^ operator. + schema: + type: array + items: + type: string + responses: + 200: + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JSON__Any' + 409: + description: Conflict + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 403: + description: Forbidden + 404: + description: Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 408: + description: Request Timeout + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 400: + description: Bad Request + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 422: + description: Unprocessable Entity + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ParameterError' + 406: + description: Not Acceptable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + 415: + description: Unsupported Media Type + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__ContentError' + /api/engine/v2/public_events/{system_id}/register: + post: + summary: Registers an external attendee for a public calendar event. + description: 'Registers an external attendee for a public calendar event. + + + Delegates to the `register_attendee(event_id, name, email)` function on + + the PublicEvents driver. The driver appends the attendee to the calendar + + event and returns `true` on success. + + + Guest JWTs are accepted provided the system id appears in their roles.' + tags: + - PublicEvents + operationId: PlaceOS::Api::PublicEvents_register + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__PublicEvents__RegistrationRequest' + required: true + parameters: + - name: system_id + in: path + required: true + schema: + type: string + responses: + 200: + description: OK + 409: + description: Conflict + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14016,6 +15421,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14085,6 +15496,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14154,6 +15571,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14228,6 +15651,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14292,6 +15721,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14366,6 +15801,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14435,6 +15876,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14503,6 +15950,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14574,6 +16027,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14645,8 +16104,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' - 401: - description: Unauthorized + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable content: application/json: schema: @@ -14744,6 +16209,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14826,6 +16297,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14897,6 +16374,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -14968,6 +16451,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15039,6 +16528,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15108,6 +16603,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15193,6 +16694,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15280,6 +16787,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15381,6 +16894,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15468,6 +16987,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15529,6 +17054,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15593,6 +17124,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15657,6 +17194,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15723,6 +17266,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15790,6 +17339,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15860,6 +17415,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15926,6 +17487,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -15986,6 +17553,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16090,6 +17663,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16159,6 +17738,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16228,6 +17813,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16302,6 +17893,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16366,6 +17963,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16440,6 +18043,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16541,6 +18150,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16610,6 +18225,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16679,6 +18300,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16753,6 +18380,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16817,6 +18450,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16891,6 +18530,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -16956,6 +18601,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17021,6 +18672,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17092,6 +18749,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17177,6 +18840,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17278,6 +18947,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17347,6 +19022,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17416,6 +19097,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17490,6 +19177,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17554,6 +19247,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17628,6 +19327,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17693,6 +19398,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17788,8 +19499,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' - 401: - description: Unauthorized + 401: + description: Unauthorized + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable content: application/json: schema: @@ -17863,6 +19580,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -17932,6 +19655,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18006,6 +19735,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18070,6 +19805,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18144,6 +19885,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18213,6 +19960,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18287,6 +20040,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18363,6 +20122,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18432,6 +20197,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18540,6 +20311,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18609,6 +20386,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18678,6 +20461,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18752,6 +20541,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18816,6 +20611,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18890,6 +20691,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -18959,6 +20766,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19030,6 +20843,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19138,6 +20957,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19207,6 +21032,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19276,6 +21107,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19350,6 +21187,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19414,6 +21257,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19488,6 +21337,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19629,6 +21484,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19705,6 +21566,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19787,6 +21654,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19870,6 +21743,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -19943,6 +21822,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20026,6 +21911,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20129,6 +22020,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20223,6 +22120,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20324,6 +22227,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20393,6 +22302,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20469,6 +22384,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20543,6 +22464,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20607,6 +22534,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20681,6 +22614,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20752,6 +22691,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20877,6 +22822,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -20946,6 +22897,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21032,6 +22989,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21106,6 +23069,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21178,6 +23147,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21263,6 +23238,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21355,6 +23336,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21426,6 +23413,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21492,6 +23485,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21582,6 +23581,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21646,6 +23651,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21717,6 +23728,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21791,6 +23808,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21860,6 +23883,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -21980,6 +24009,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22049,6 +24084,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22126,6 +24167,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22202,6 +24249,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22272,6 +24325,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22348,6 +24407,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22415,6 +24480,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22493,6 +24564,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22568,6 +24645,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22659,6 +24742,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22733,6 +24822,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22811,6 +24906,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22874,6 +24975,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -22955,6 +25062,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23026,6 +25139,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23111,6 +25230,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23185,6 +25310,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23286,6 +25417,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23346,6 +25483,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23472,6 +25615,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23541,6 +25690,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23607,6 +25762,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23682,6 +25843,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23756,6 +25923,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23820,6 +25993,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23894,6 +26073,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -23970,6 +26155,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -24041,6 +26232,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -24131,6 +26328,12 @@ paths: application/json: schema: $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' + 503: + description: Service Unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/PlaceOS__Api__Application__CommonError' 403: description: Forbidden 404: @@ -28809,6 +31012,32 @@ components: type: integer format: Int64 nullable: true + PlaceOS__Api__PublicEvents__TokenRequest: + type: object + properties: + captcha: + type: string + name: + type: string + email: + type: string + required: + - captcha + - name + - email + PlaceOS__Api__PublicEvents__RegistrationRequest: + type: object + properties: + event_id: + type: string + name: + type: string + email: + type: string + required: + - event_id + - name + - email PlaceOS__Model__Repository: type: object properties: diff --git a/spec/controllers/public_events_spec.cr b/spec/controllers/public_events_spec.cr new file mode 100644 index 00000000..7a0756a0 --- /dev/null +++ b/spec/controllers/public_events_spec.cr @@ -0,0 +1,312 @@ +require "../helper" + +module PlaceOS::Api + # Helper available across the spec: build and persist a public ControlSystem. + def self.public_control_system + system = Model::Generator.control_system + system.public = true + system.save! + system + end + + describe PublicEvents, tags: "public_events" do + ::Spec.before_each do + Model::ControlSystem.clear + Model::Driver.clear + Model::Module.clear + end + + # ------------------------------------------------------------------------- + # POST /guest_token/:system_id + # ------------------------------------------------------------------------- + + describe "POST /guest_token/:system_id" do + it "returns 404 for a system that does not exist" do + result = client.post( + "#{PublicEvents.base_route}guest_token/sys-doesnotexist", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {captcha: "token", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 404 + end + + it "returns 404 for a system that is not public" do + system = Model::Generator.control_system.save! + + result = client.post( + "#{PublicEvents.base_route}guest_token/#{system.id}", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {captcha: "token", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 404 + end + + it "returns 503 when JWT_SECRET is not configured (expected in test env)" do + system = PlaceOS::Api.public_control_system + + # Allow captcha to be skipped so that the only blocker is the missing JWT_SECRET. + # Declared before `begin` so the ensure clause has the right type. + authority = Model::Authority.find_by_domain("localhost").not_nil! + + begin + authority.internals["recaptcha_skip"] = JSON::Any.new(true) + authority.save! + + result = client.post( + "#{PublicEvents.base_route}guest_token/#{system.id}", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {captcha: "skip", name: "Alice", email: "alice@external.com"}.to_json, + ) + + # In CI / test environments JWT_SECRET is typically not set -> 503. + # If it happens to be configured the route succeeds -> 200. + (result.status_code == 503 || result.status_code == 200).should be_true + ensure + # Always restore authority internals so subsequent tests are unaffected. + authority.internals.delete("recaptcha_skip") + authority.save! + end + end + + it "returns an error when reCAPTCHA is not configured and the skip flag is absent" do + system = PlaceOS::Api.public_control_system + + result = client.post( + "#{PublicEvents.base_route}guest_token/#{system.id}", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {captcha: "some-token", name: "Alice", email: "alice@external.com"}.to_json, + ) + + # Without recaptcha_secret or recaptcha_skip the route returns 401 + # (RecaptchaFailed). If JWT_SECRET is also absent 503 arrives first. + # Either way the response is a client/server error. + result.status_code.should be >= 400 + end + + it "finds a system by its permalink (code) and rejects non-public ones" do + system = Model::Generator.control_system + system.code = "my-event-lobby" + system.public = false + system.save! + + result = client.post( + "#{PublicEvents.base_route}guest_token/my-event-lobby", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {captcha: "token", name: "Bob", email: "bob@external.com"}.to_json, + ) + result.status_code.should eq 404 + end + end + + # ------------------------------------------------------------------------- + # GET /:system_id/events + # ------------------------------------------------------------------------- + + describe "GET /:system_id/events" do + it "returns 401 without an authentication token" do + system = PlaceOS::Api.public_control_system + + result = client.get( + "#{PublicEvents.base_route}#{system.id}/events", + headers: HTTP::Headers{"Host" => "localhost"}, + ) + result.status_code.should eq 401 + end + + it "returns 404 for a non-public system" do + system = Model::Generator.control_system.save! + + result = client.get( + "#{PublicEvents.base_route}#{system.id}/events", + headers: Spec::Authentication.headers, + ) + result.status_code.should eq 404 + end + + it "returns an empty array when no PublicEvents module is present" do + system = PlaceOS::Api.public_control_system + + result = client.get( + "#{PublicEvents.base_route}#{system.id}/events", + headers: Spec::Authentication.headers, + ) + + result.status_code.should eq 200 + Array(JSON::Any).from_json(result.body).should be_empty + end + + it "returns 403 when a Scope::GUEST token has no system roles" do + system = PlaceOS::Api.public_control_system + + # Scope::GUEST (access = All) does pass can_read_guest. However it + # also makes guest_scope? return true, which triggers the roles check + # inside the action. A token issued via Spec::Authentication carries + # empty roles, so roles.includes?(system_id) is false → Forbidden. + _, guest_headers = Spec::Authentication.authentication( + sys_admin: false, + support: false, + scope: [Model::UserJWT::Scope::GUEST], + ) + + result = client.get( + "#{PublicEvents.base_route}#{system.id}/events", + headers: guest_headers, + ) + result.status_code.should eq 403 + end + + it "allows a token with guest:read scope to list events" do + system = PlaceOS::Api.public_control_system + + # Scope.new("guest", :read) grants explicit read access and satisfies + # can_read_guest — the same pattern used by the metadata spec. + _, guest_headers = Spec::Authentication.authentication( + sys_admin: false, + support: false, + scope: [Model::UserJWT::Scope.new("guest", Model::UserJWT::Scope::Access::Read)], + ) + + result = client.get( + "#{PublicEvents.base_route}#{system.id}/events", + headers: guest_headers, + ) + + # No PublicEvents module configured -> empty array, but auth passes. + result.status_code.should eq 200 + Array(JSON::Any).from_json(result.body).should be_empty + end + end + + # ------------------------------------------------------------------------- + # POST /:system_id/register + # ------------------------------------------------------------------------- + + describe "POST /:system_id/register" do + it "returns 401 without an authentication token" do + system = PlaceOS::Api.public_control_system + + result = client.post( + "#{PublicEvents.base_route}#{system.id}/register", + headers: HTTP::Headers{ + "Host" => "localhost", + "Content-Type" => "application/json", + }, + body: {event_id: "evt-1", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 401 + end + + it "returns 404 for a non-public system" do + system = Model::Generator.control_system.save! + + result = client.post( + "#{PublicEvents.base_route}#{system.id}/register", + headers: Spec::Authentication.headers, + body: {event_id: "evt-1", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 404 + end + + it "returns 404 when no PublicEvents module is configured on the system" do + system = PlaceOS::Api.public_control_system + + result = client.post( + "#{PublicEvents.base_route}#{system.id}/register", + headers: Spec::Authentication.headers, + body: {event_id: "evt-1", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 404 + end + + it "returns 403 when a Scope::GUEST token has no system roles" do + system = PlaceOS::Api.public_control_system + + # Scope::GUEST (access = All) does pass can_read_guest. However it + # also makes guest_scope? return true, which triggers the roles check + # inside the action. A token issued via Spec::Authentication carries + # empty roles, so roles.includes?(system_id) is false → Forbidden. + _, guest_headers = Spec::Authentication.authentication( + sys_admin: false, + support: false, + scope: [Model::UserJWT::Scope::GUEST], + ) + + result = client.post( + "#{PublicEvents.base_route}#{system.id}/register", + headers: guest_headers, + body: {event_id: "evt-1", name: "Alice", email: "alice@external.com"}.to_json, + ) + result.status_code.should eq 403 + end + + it "delegates to the driver and returns its result when the module is present" do + system = PlaceOS::Api.public_control_system + + driver = Model::Generator.driver(role: Model::Driver::Role::Logic) + driver.module_name = "PublicEvents" + driver.save! + + mod = Model::Generator.module(driver: driver) + mod.running = true + mod.save! + system.modules = [mod.id.as(String)] + system.save! + + module_id = mod.id.as(String) + sys_id = system.id.as(String) + + # Seed the system-to-module lookup so Proxy::System.module_id? resolves. + system_storage = ::PlaceOS::Driver::RedisStorage.new(sys_id, "system") + system_storage["PublicEvents/1"] = module_id + + # Seed the driver interface metadata so RemoteDriver.metadata? resolves + # and function_present?("register_attendee") returns true. + # This mirrors the pattern used in systems_spec.cr for functions/state tests. + ::PlaceOS::Driver::RedisStorage.with_redis do |redis| + meta = ::PlaceOS::Driver::DriverModel::Metadata.new( + {"register_attendee" => { + "event_id" => JSON.parse(%({"type":"String"})), + "name" => JSON.parse(%({"type":"String"})), + "email" => JSON.parse(%({"type":"String"})), + } of String => JSON::Any}, + ["Place::PublicEvents"], + ) + redis.set("interface/#{module_id}", meta.to_json) + end + + # Stub the core command HTTP endpoint to return true. + WebMock.stub(:post, /\/api\/core\/v1\/command\//).to_return( + headers: HTTP::Headers{"Content-Type" => "application/json"}, + body: "true", + ) + + result = client.post( + "#{PublicEvents.base_route}#{system.id}/register", + headers: Spec::Authentication.headers, + body: {event_id: "evt-public-1", name: "Alice", email: "alice@external.com"}.to_json, + ) + + result.status_code.should eq 200 + result.body.should eq "true" + + system_storage.delete("PublicEvents/1") + ::PlaceOS::Driver::RedisStorage.with_redis(&.del("interface/#{module_id}")) + end + end + end +end diff --git a/src/placeos-rest-api/controllers/application.cr b/src/placeos-rest-api/controllers/application.cr index 928d4889..1114645a 100644 --- a/src/placeos-rest-api/controllers/application.cr +++ b/src/placeos-rest-api/controllers/application.cr @@ -163,6 +163,20 @@ module PlaceOS::Api CommonError.new(error, false) end + # 401 if reCAPTCHA verification fails + @[AC::Route::Exception(Error::RecaptchaFailed, status_code: HTTP::Status::UNAUTHORIZED)] + def recaptcha_failed(error) : CommonError + Log.debug { error.message } + CommonError.new(error, false) + end + + # 503 if guest access is not configured (e.g. JWT_SECRET absent) + @[AC::Route::Exception(Error::GuestAccessDisabled, status_code: HTTP::Status::SERVICE_UNAVAILABLE)] + def guest_access_disabled(error) : CommonError + Log.debug { error.message } + CommonError.new(error, false) + end + # 403 if user role invalid for a route @[AC::Route::Exception(Error::Forbidden, status_code: HTTP::Status::FORBIDDEN)] def resource_access_forbidden(error) : Nil diff --git a/src/placeos-rest-api/controllers/public_events.cr b/src/placeos-rest-api/controllers/public_events.cr new file mode 100644 index 00000000..4347cb62 --- /dev/null +++ b/src/placeos-rest-api/controllers/public_events.cr @@ -0,0 +1,234 @@ +require "base64" +require "jwt" +require "placeos-driver/storage" +require "placeos-driver/proxy/system" +require "placeos-driver/proxy/remote_driver" + +require "./application" + +module PlaceOS::Api + class PublicEvents < Application + include Utils::CoreHelper + + base "/api/engine/v2/public_events/" + + # guest_token is fully unauthenticated — reCAPTCHA is the only gate. + skip_action :authorize!, only: [:guest_token] + skip_action :set_user_id, only: [:guest_token] + + # Regular authenticated users AND guest JWTs may call index / register. + before_action :can_read_guest, only: [:index, :register] + + ########################################################################## + # Before filters + ########################################################################## + + # Resolves the target ControlSystem from either a system-id or a permalink + # (code). Raises 404 if the system does not exist or is not marked public. + @[AC::Route::Filter(:before_action, only: [:guest_token, :index, :register])] + def find_current_control_system( + @[AC::Param::Info(description: "a system id or unique permalink", example: "sys-12345")] + system_id : String, + ) + system = if system_id.starts_with?("sys-") + ::PlaceOS::Model::ControlSystem.find!(system_id) + else + res = ::PlaceOS::Model::ControlSystem.where(code: system_id).first? + raise Error::NotFound.new("could not find system #{system_id}") unless res + res + end + + raise Error::NotFound.new("could not find system #{system_id}") unless system.public + + Log.context.set(control_system_id: system_id) + @current_control_system = system + end + + getter! current_control_system : ::PlaceOS::Model::ControlSystem + + ########################################################################## + # Request / response structs + ########################################################################## + + struct CaptchaResponse + include JSON::Serializable + property? success : Bool + end + + struct TokenRequest + include JSON::Serializable + getter captcha : String + getter name : String + getter email : String + end + + struct RegistrationRequest + include JSON::Serializable + getter event_id : String + getter name : String + getter email : String + end + + ########################################################################## + # Constants + ########################################################################## + + JWT_SECRET = ENV["JWT_SECRET"]?.try { |k| Base64.decode_string(k) } + MODULE_NAME = "PublicEvents" + + ########################################################################## + # Routes + ########################################################################## + + # Issues a short-lived guest JWT after verifying the reCAPTCHA challenge. + # + # The resulting token is scoped to the requested public system and grants: + # - read access to the cached `:public_events` driver status + # - the ability to call `register_attendee` via the `/register` route + # + # Mirrors the WebRTC `guest_entry` flow: + # - authority.internals["recaptcha_secret"] → live Google verification + # - authority.internals["recaptcha_skip"] = true → skip (dev / test only) + @[AC::Route::POST("/guest_token/:system_id", body: :params)] + def guest_token( + system_id : String, + params : TokenRequest, + ) : String + jwt_secret = JWT_SECRET + raise Error::GuestAccessDisabled.new("guest access not enabled") unless jwt_secret + + authority = current_authority.as(::PlaceOS::Model::Authority) + + if recaptcha_secret = authority.internals["recaptcha_secret"]?.try(&.as_s) + HTTP::Client.new("www.google.com", tls: true) do |http| + http.connect_timeout = 2.seconds + begin + resp = http.post("/recaptcha/api/siteverify?secret=#{recaptcha_secret}&response=#{params.captcha}") + if resp.success? + result = CaptchaResponse.from_json(resp.body) + raise Error::RecaptchaFailed.new("recaptcha rejected") unless result.success? + else + raise Error::RecaptchaFailed.new("error verifying recaptcha response") + end + rescue error : Error::RecaptchaFailed + raise error + rescue error + # Do not block the user if Google is temporarily unreachable. + Log.error(exception: error) { "recaptcha verification failed" } + end + end + else + raise Error::RecaptchaFailed.new("recaptcha not configured") unless authority.internals["recaptcha_skip"]? == true + end + + system = current_control_system + expires = 12.hours.from_now + + payload = { + iss: "POS", + iat: 1.minute.ago.to_unix, + exp: expires.to_unix, + jti: UUID.random.to_s, + aud: authority.domain, + scope: ["guest"], + sub: "guest-#{UUID.random}", + u: { + n: params.name, + e: params.email, + p: 0, + r: [system_id], + }, + } + + jwt = JWT.encode(payload, jwt_secret, JWT::Algorithm::RS256) + + response.cookies << HTTP::Cookie.new( + name: "bearer_token", + value: jwt, + path: "/api/engine/v2/public_events", + expires: expires, + secure: true, + http_only: true, + samesite: :strict, + ) + + jwt + end + + # Returns the cached list of public events for the given system. + # + # Reads the `:public_events` status key directly from Redis — no live + # driver round-trip is made. The response is sourced from the cache that + # the PublicEvents driver maintains via its Bookings subscription. + # + # Guest JWTs are accepted provided the system id appears in their roles. + @[AC::Route::GET("/:system_id/events")] + def index(system_id : String) : Array(JSON::Any) + if user_token.guest_scope? + raise Error::Forbidden.new unless user_token.user.roles.includes?(current_control_system.id) + end + + module_id = ::PlaceOS::Driver::Proxy::System.module_id?( + system_id: system_id, + module_name: MODULE_NAME, + index: 1, + ) + + return [] of JSON::Any unless module_id + + storage = Driver::RedisStorage.new(module_id) + raw = storage["public_events"]? + return [] of JSON::Any unless raw + + Array(JSON::Any).from_json(raw) + rescue e : JSON::ParseException + Log.warn(exception: e) { "failed to parse public_events cache for #{current_control_system.id}" } + [] of JSON::Any + end + + # Registers an external attendee for a public calendar event. + # + # Delegates to the `register_attendee(event_id, name, email)` function on + # the PublicEvents driver. The driver appends the attendee to the calendar + # event and returns `true` on success. + # + # Guest JWTs are accepted provided the system id appears in their roles. + @[AC::Route::POST("/:system_id/register", body: :params)] + def register( + system_id : String, + params : RegistrationRequest, + ) : Nil + if user_token.guest_scope? + raise Error::Forbidden.new unless user_token.user.roles.includes?(current_control_system.id) + end + + module_id = ::PlaceOS::Driver::Proxy::System.module_id?( + system_id: system_id, + module_name: MODULE_NAME, + index: 1, + ) + raise Error::NotFound.new("PublicEvents module not found on system #{system_id}") unless module_id + + remote_driver = RemoteDriver.new( + sys_id: system_id, + module_name: MODULE_NAME, + index: 1, + user_id: user_token.id, + ) do |mod_id| + ::PlaceOS::Model::Module.find!(mod_id).edge_id.as(String) + end + + result, status_code = remote_driver.exec( + security: driver_clearance(user_token), + function: "register_attendee", + args: Array(JSON::Any).from_json([params.event_id, params.name, params.email].to_json), + request_id: request_id, + ) + + response.content_type = "application/json" + render text: result, status: status_code + rescue e : RemoteDriver::Error + handle_execute_error(e) + end + end +end diff --git a/src/placeos-rest-api/controllers/webrtc.cr b/src/placeos-rest-api/controllers/webrtc.cr index dc0a4cb4..d5836aa4 100644 --- a/src/placeos-rest-api/controllers/webrtc.cr +++ b/src/placeos-rest-api/controllers/webrtc.cr @@ -46,23 +46,8 @@ module PlaceOS::Api property? success : Bool end - class ::PlaceOS::Api::Error - class RecaptchaFailed < Error - end - - class GuestAccessDisabled < Error - end - end - ############################################################################################### - # 401 if recaptcha fails - @[AC::Route::Exception(Error::RecaptchaFailed, status_code: HTTP::Status::UNAUTHORIZED)] - def recaptcha_failed(error) : CommonError - Log.debug { error.message } - CommonError.new(error, false) - end - JWT_SECRET = ENV["JWT_SECRET"]?.try { |k| Base64.decode_string(k) } # this route provides guest access to an anonymous chat room @@ -201,7 +186,7 @@ module PlaceOS::Api user_id : String, session_id : String? = nil, body : JSON::Any? = nil, - ) : Nil | Bool + ) : Bool? result = MANAGER.transfer(user_id, session_id, body.try &.to_json) case result in .signal_sent? diff --git a/src/placeos-rest-api/error.cr b/src/placeos-rest-api/error.cr index 5eabacfe..51dd66fe 100644 --- a/src/placeos-rest-api/error.cr +++ b/src/placeos-rest-api/error.cr @@ -20,6 +20,12 @@ module PlaceOS::Api record Field, field : Symbol, message : String + class RecaptchaFailed < Error + end + + class GuestAccessDisabled < Error + end + class ModelValidation < Error getter failures : Array(NamedTuple(field: Symbol, reason: String))