projects.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. {
  2. "get": {
  3. "tags": ["Teams"],
  4. "description": "Return a list of projects bound to a team.",
  5. "operationId": "List a Team's Projects",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization the team belongs to.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "team_slug",
  18. "in": "path",
  19. "description": "The slug of the team to get.",
  20. "required": true,
  21. "schema": {
  22. "type": "string"
  23. }
  24. },
  25. {
  26. "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
  27. }
  28. ],
  29. "responses": {
  30. "200": {
  31. "description": "Success",
  32. "content": {
  33. "application/json": {
  34. "schema": {
  35. "type": "array",
  36. "items": {
  37. "$ref": "../../components/schemas/project.json#/TeamProjects"
  38. }
  39. },
  40. "example": [
  41. {
  42. "slug": "the-spoiled-yoghurt",
  43. "name": "The Spoiled Yoghurt",
  44. "hasAccess": true,
  45. "teams": [
  46. {
  47. "id": "542609",
  48. "name": "Powerful Abolitionist",
  49. "slug": "powerful-abolitionist"
  50. }
  51. ],
  52. "platform": null,
  53. "firstEvent": null,
  54. "isMember": false,
  55. "team": {
  56. "id": "542609",
  57. "name": "Powerful Abolitionist",
  58. "slug": "powerful-abolitionist"
  59. },
  60. "dateCreated": "2020-08-20T14:36:34.171255Z",
  61. "isBookmarked": false,
  62. "id": "5398494",
  63. "latestDeploys": null,
  64. "features": [
  65. "custom-inbound-filters",
  66. "discard-groups",
  67. "rate-limits",
  68. "data-forwarding",
  69. "similarity-view",
  70. "issue-alerts-targeting",
  71. "servicehooks",
  72. "minidump",
  73. "similarity-indexing"
  74. ]
  75. }
  76. ]
  77. }
  78. }
  79. },
  80. "403": {
  81. "description": "Forbidden"
  82. },
  83. "404": {
  84. "description": "Team not found"
  85. }
  86. },
  87. "security": [
  88. {
  89. "auth_token": ["project:read"]
  90. }
  91. ]
  92. },
  93. "post": {
  94. "tags": ["Teams"],
  95. "description": "Create a new project bound to a team.",
  96. "operationId": "Create a New Project",
  97. "parameters": [
  98. {
  99. "name": "organization_slug",
  100. "in": "path",
  101. "description": "The slug of the organization the team belongs to.",
  102. "required": true,
  103. "schema": {
  104. "type": "string"
  105. }
  106. },
  107. {
  108. "name": "team_slug",
  109. "in": "path",
  110. "description": "The slug of the team to create a new project for.",
  111. "required": true,
  112. "schema": {
  113. "type": "string"
  114. }
  115. }
  116. ],
  117. "requestBody": {
  118. "content": {
  119. "application/json": {
  120. "schema": {
  121. "required": ["name"],
  122. "type": "object",
  123. "properties": {
  124. "name": {
  125. "type": "string",
  126. "description": "The name for the new project."
  127. },
  128. "slug": {
  129. "type": "string",
  130. "description": "Optional slug for the new project. If not provided a slug is generated from the name."
  131. }
  132. }
  133. },
  134. "example": {
  135. "name": "The Spoiled Yoghurt",
  136. "slug": "the-spoiled-yoghurt"
  137. }
  138. }
  139. },
  140. "required": true
  141. },
  142. "responses": {
  143. "201": {
  144. "description": "Created",
  145. "content": {
  146. "application/json": {
  147. "schema": {
  148. "$ref": "../../components/schemas/project.json#/Project"
  149. },
  150. "example": {
  151. "status": "active",
  152. "name": "The Spoiled Yoghurt",
  153. "color": "#bf6e3f",
  154. "isInternal": false,
  155. "isPublic": false,
  156. "slug": "the-spoiled-yoghurt",
  157. "platform": null,
  158. "hasAccess": true,
  159. "firstEvent": null,
  160. "avatar": {
  161. "avatarUuid": null,
  162. "avatarType": "letter_avatar"
  163. },
  164. "isMember": false,
  165. "dateCreated": "2020-08-20T14:36:34.171255Z",
  166. "isBookmarked": false,
  167. "id": "5398494",
  168. "features": [
  169. "custom-inbound-filters",
  170. "discard-groups",
  171. "rate-limits",
  172. "data-forwarding",
  173. "similarity-view",
  174. "issue-alerts-targeting",
  175. "servicehooks",
  176. "minidump",
  177. "similarity-indexing"
  178. ]
  179. }
  180. }
  181. }
  182. },
  183. "400": {
  184. "description": "Bad input"
  185. },
  186. "403": {
  187. "description": "Forbidden"
  188. },
  189. "404": {
  190. "description": "Team not found"
  191. },
  192. "409": {
  193. "description": "A project with the given slug already exists"
  194. }
  195. },
  196. "security": [
  197. {
  198. "auth_token": ["project:write"]
  199. }
  200. ]
  201. }
  202. }