repo-commits.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "get": {
  3. "tags": ["Organizations"],
  4. "description": "Return a list of commits for a given repository.",
  5. "operationId": "List a Repository's Commits",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The organization short name.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "repo_id",
  18. "in": "path",
  19. "description": "The repository ID.",
  20. "required": true,
  21. "schema": {
  22. "type": "string"
  23. }
  24. }
  25. ],
  26. "responses": {
  27. "200": {
  28. "description": "Success",
  29. "content": {
  30. "application/json": {
  31. "schema": {
  32. "type": "array",
  33. "items": {
  34. "$ref": "../../components/schemas/releases/commit.json#/MinimalCommit"
  35. }
  36. },
  37. "example": [
  38. {
  39. "dateCreated": "2018-11-06T21:19:58.536Z",
  40. "id": "acbafc639127fd89d10f474520104517ff1d709e",
  41. "message": "Initial commit from Create Next App"
  42. }
  43. ]
  44. }
  45. }
  46. },
  47. "403": {
  48. "description": "Forbidden"
  49. },
  50. "401": {
  51. "description": "Unauthorized"
  52. },
  53. "404": {
  54. "description": "Not Found"
  55. }
  56. },
  57. "security": [
  58. {
  59. "auth_token": ["org: read"]
  60. }
  61. ]
  62. }
  63. }