From 8e2f7f2bfbfcf527aa05d530bd294d2bc57baad8 Mon Sep 17 00:00:00 2001 From: Dev Khant Date: Sat, 14 Sep 2024 22:38:59 +0530 Subject: [PATCH] Shows all responses in api-reference (#1865) --- docs/openapi.json | 386 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 386 insertions(+) diff --git a/docs/openapi.json b/docs/openapi.json index 05323f5a..abdd0015 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -275,6 +275,22 @@ } } } + }, + "400": { + "description": "Invalid entity type", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Invalid entity type" + } + } + } + } + } } } } @@ -1392,6 +1408,28 @@ } } } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "object", + "description": "Errors found in the payload", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } } } } @@ -1486,6 +1524,22 @@ } } } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } }, @@ -1523,6 +1577,38 @@ } } } + }, + "403": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized" + } + } + } + } + } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } } @@ -1575,6 +1661,22 @@ } } } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } }, @@ -1636,6 +1738,44 @@ } } } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "object", + "description": "Errors found in the payload", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } }, @@ -1697,6 +1837,44 @@ } } } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "errors": { + "type": "object", + "description": "Errors found in the payload", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } }, @@ -1752,6 +1930,22 @@ } } } + }, + "404": { + "description": "Organization not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization not found" + } + } + } + } + } } } } @@ -1889,6 +2083,38 @@ } } } + }, + "403": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized to create projects in this organization." + } + } + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Project could not be created." + } + } + } + } + } } } } @@ -1976,6 +2202,22 @@ } } } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } } } }, @@ -2022,6 +2264,38 @@ } } } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } + }, + "403": { + "description": "Unauthorized to modify this project", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized to modify this project." + } + } + } + } + } } } } @@ -2080,6 +2354,22 @@ } } } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } } } }, @@ -2150,6 +2440,38 @@ } } } + }, + "403": { + "description": "Unauthorized to modify project members", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized to modify project members." + } + } + } + } + } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } } } }, @@ -2220,6 +2542,38 @@ } } } + }, + "403": { + "description": "Unauthorized to modify project members", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized to modify project members." + } + } + } + } + } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } } } }, @@ -2272,6 +2626,38 @@ } } } + }, + "403": { + "description": "Unauthorized to modify project members", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Unauthorized to modify project members." + } + } + } + } + } + }, + "404": { + "description": "Organization or project not found", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "example": "Organization or project not found" + } + } + } + } + } } } }