Shows all responses in api-reference (#1865)

This commit is contained in:
Dev Khant
2024-09-14 22:38:59 +05:30
committed by GitHub
parent dc5a26fe95
commit 8e2f7f2bfb

View File

@@ -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"
}
}
}
}
}
}
}
}