projects.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "get": {
  3. "tags": ["Organizations"],
  4. "description": "Return a list of projects bound to a organization.",
  5. "operationId": "List an Organization's Projects",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization for which the projects should be listed.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
  18. }
  19. ],
  20. "responses": {
  21. "200": {
  22. "description": "Success",
  23. "content": {
  24. "application/json": {
  25. "schema": {
  26. "type": "array",
  27. "items": {
  28. "$ref": "../../components/schemas/project.json#/OrganizationProjects"
  29. }
  30. },
  31. "example": [
  32. {
  33. "dateCreated": "2018-11-06T21:19:58.536Z",
  34. "firstEvent": null,
  35. "hasAccess": true,
  36. "id": "3",
  37. "isBookmarked": false,
  38. "isMember": true,
  39. "latestDeploys": null,
  40. "name": "Prime Mover",
  41. "platform": null,
  42. "platforms": [],
  43. "slug": "prime-mover",
  44. "team": {
  45. "id": "2",
  46. "name": "Powerful Abolitionist",
  47. "slug": "powerful-abolitionist"
  48. },
  49. "teams": [
  50. {
  51. "id": "2",
  52. "name": "Powerful Abolitionist",
  53. "slug": "powerful-abolitionist"
  54. }
  55. ]
  56. }
  57. ]
  58. }
  59. }
  60. },
  61. "403": {
  62. "description": "Forbidden"
  63. },
  64. "401": {
  65. "description": "Unauthorized"
  66. },
  67. "404": {
  68. "description": "Not Found"
  69. }
  70. },
  71. "security": [
  72. {
  73. "auth_token": ["org: read"]
  74. }
  75. ]
  76. }
  77. }