shortcut_client_ruby 0.0.4 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (452) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +74 -0
  3. data/README.md +31 -1986
  4. data/Rakefile +2 -0
  5. data/bin/update.rb +8 -4
  6. data/config.json +2 -1
  7. data/docs/BasicWorkspaceInfo.md +16 -4
  8. data/docs/Branch.md +34 -13
  9. data/docs/Category.md +30 -11
  10. data/docs/Commit.md +38 -15
  11. data/docs/CreateCategory.md +20 -6
  12. data/docs/CreateCategoryParams.md +18 -5
  13. data/docs/CreateCommentComment.md +22 -7
  14. data/docs/CreateEntityTemplate.md +18 -5
  15. data/docs/CreateEpic.md +46 -19
  16. data/docs/CreateEpicComment.md +22 -7
  17. data/docs/CreateGroup.md +28 -10
  18. data/docs/CreateIteration.md +26 -9
  19. data/docs/CreateLabelParams.md +20 -6
  20. data/docs/CreateLinkedFile.md +30 -11
  21. data/docs/CreateMilestone.md +24 -8
  22. data/docs/CreateOrDeleteStoryReaction.md +14 -3
  23. data/docs/CreateProject.md +34 -13
  24. data/docs/CreateStories.md +14 -3
  25. data/docs/CreateStoryComment.md +22 -7
  26. data/docs/CreateStoryCommentParams.md +22 -7
  27. data/docs/CreateStoryContents.md +54 -23
  28. data/docs/CreateStoryLink.md +18 -5
  29. data/docs/CreateStoryLinkParams.md +18 -5
  30. data/docs/CreateStoryParams.md +66 -29
  31. data/docs/CreateTask.md +24 -8
  32. data/docs/CreateTaskParams.md +24 -8
  33. data/docs/DefaultApi.md +3569 -1641
  34. data/docs/DeleteStories.md +14 -3
  35. data/docs/EntityTemplate.md +28 -10
  36. data/docs/EntityTemplateTask.md +20 -6
  37. data/docs/Epic.md +88 -40
  38. data/docs/EpicSearchResults.md +20 -6
  39. data/docs/EpicSlim.md +86 -39
  40. data/docs/EpicState.md +30 -11
  41. data/docs/EpicStats.md +38 -15
  42. data/docs/EpicWorkflow.md +24 -8
  43. data/docs/GetEpicStories.md +14 -3
  44. data/docs/GetExternalLinkStoriesParams.md +14 -3
  45. data/docs/GetIterationStories.md +14 -3
  46. data/docs/GetLabelStories.md +14 -3
  47. data/docs/GetMember.md +14 -3
  48. data/docs/GetProjectStories.md +14 -3
  49. data/docs/Group.md +44 -18
  50. data/docs/History.md +30 -11
  51. data/docs/HistoryActionBranchCreate.md +22 -7
  52. data/docs/HistoryActionBranchMerge.md +22 -7
  53. data/docs/HistoryActionBranchPush.md +22 -7
  54. data/docs/HistoryActionLabelCreate.md +22 -7
  55. data/docs/HistoryActionLabelDelete.md +20 -6
  56. data/docs/HistoryActionLabelUpdate.md +18 -5
  57. data/docs/HistoryActionProjectUpdate.md +22 -7
  58. data/docs/HistoryActionPullRequest.md +24 -8
  59. data/docs/HistoryActionStoryCommentCreate.md +24 -8
  60. data/docs/HistoryActionStoryCreate.md +60 -26
  61. data/docs/HistoryActionStoryDelete.md +22 -7
  62. data/docs/HistoryActionStoryLinkCreate.md +24 -8
  63. data/docs/HistoryActionStoryLinkDelete.md +24 -8
  64. data/docs/HistoryActionStoryLinkUpdate.md +26 -9
  65. data/docs/HistoryActionStoryUpdate.md +26 -9
  66. data/docs/HistoryActionTaskCreate.md +30 -11
  67. data/docs/HistoryActionTaskDelete.md +20 -6
  68. data/docs/HistoryActionTaskUpdate.md +26 -9
  69. data/docs/HistoryChangesStory.md +60 -26
  70. data/docs/HistoryChangesStoryLink.md +18 -5
  71. data/docs/HistoryChangesTask.md +20 -6
  72. data/docs/HistoryReferenceBranch.md +20 -6
  73. data/docs/HistoryReferenceCommit.md +20 -6
  74. data/docs/HistoryReferenceEpic.md +20 -6
  75. data/docs/HistoryReferenceGeneral.md +18 -5
  76. data/docs/HistoryReferenceGroup.md +18 -5
  77. data/docs/HistoryReferenceIteration.md +20 -6
  78. data/docs/HistoryReferenceLabel.md +20 -6
  79. data/docs/HistoryReferenceProject.md +20 -6
  80. data/docs/HistoryReferenceStory.md +22 -7
  81. data/docs/HistoryReferenceStoryTask.md +18 -5
  82. data/docs/HistoryReferenceWorkflowState.md +20 -6
  83. data/docs/Icon.md +22 -7
  84. data/docs/Identity.md +18 -5
  85. data/docs/Iteration.md +48 -20
  86. data/docs/IterationSlim.md +46 -19
  87. data/docs/IterationStats.md +34 -13
  88. data/docs/Label.md +34 -13
  89. data/docs/LabelSlim.md +32 -12
  90. data/docs/LabelStats.md +42 -17
  91. data/docs/LinkedFile.md +44 -18
  92. data/docs/ListEpics.md +14 -3
  93. data/docs/ListGroupStories.md +16 -4
  94. data/docs/ListLabels.md +14 -3
  95. data/docs/ListMembers.md +14 -3
  96. data/docs/MaxSearchResultsExceededError.md +18 -5
  97. data/docs/Member.md +34 -13
  98. data/docs/MemberInfo.md +20 -6
  99. data/docs/Milestone.md +46 -19
  100. data/docs/MilestoneStats.md +18 -5
  101. data/docs/Profile.md +30 -11
  102. data/docs/Project.md +50 -21
  103. data/docs/ProjectStats.md +18 -5
  104. data/docs/PullRequest.md +56 -24
  105. data/docs/PullRequestLabel.md +22 -7
  106. data/docs/Repository.md +30 -11
  107. data/docs/Search.md +20 -6
  108. data/docs/SearchResults.md +16 -4
  109. data/docs/SearchStories.md +68 -30
  110. data/docs/Story.md +112 -52
  111. data/docs/StoryComment.md +40 -16
  112. data/docs/StoryContents.md +50 -21
  113. data/docs/StoryContentsTask.md +22 -7
  114. data/docs/StoryHistoryChangeAddsRemovesInt.md +16 -4
  115. data/docs/StoryHistoryChangeAddsRemovesUuid.md +16 -4
  116. data/docs/StoryHistoryChangeOldNewBool.md +16 -4
  117. data/docs/StoryHistoryChangeOldNewInt.md +16 -4
  118. data/docs/StoryHistoryChangeOldNewStr.md +16 -4
  119. data/docs/StoryHistoryChangeOldNewUuid.md +16 -4
  120. data/docs/StoryLink.md +28 -10
  121. data/docs/StoryReaction.md +16 -4
  122. data/docs/StorySearchResults.md +20 -6
  123. data/docs/StorySlim.md +108 -50
  124. data/docs/StoryStats.md +14 -3
  125. data/docs/Task.md +40 -16
  126. data/docs/ThreadedComment.md +38 -15
  127. data/docs/TypedStoryLink.md +30 -11
  128. data/docs/UnusableEntitlementError.md +18 -5
  129. data/docs/UpdateCategory.md +18 -5
  130. data/docs/UpdateComment.md +14 -3
  131. data/docs/UpdateEntityTemplate.md +16 -4
  132. data/docs/UpdateEpic.md +46 -19
  133. data/docs/UpdateFile.md +24 -8
  134. data/docs/UpdateGroup.md +30 -11
  135. data/docs/UpdateIteration.md +26 -9
  136. data/docs/UpdateLabel.md +20 -6
  137. data/docs/UpdateLinkedFile.md +28 -10
  138. data/docs/UpdateMilestone.md +28 -10
  139. data/docs/UpdateProject.md +30 -11
  140. data/docs/UpdateStories.md +54 -23
  141. data/docs/UpdateStory.md +64 -28
  142. data/docs/UpdateStoryComment.md +14 -3
  143. data/docs/UpdateStoryContents.md +54 -23
  144. data/docs/UpdateStoryLink.md +18 -5
  145. data/docs/UpdateTask.md +22 -7
  146. data/docs/UploadedFile.md +46 -19
  147. data/docs/Workflow.md +34 -13
  148. data/docs/WorkflowState.md +36 -14
  149. data/git_push.sh +11 -9
  150. data/lib/shortcut_client_ruby/api/default_api.rb +2119 -1248
  151. data/lib/shortcut_client_ruby/api_client.rb +143 -106
  152. data/lib/shortcut_client_ruby/api_error.rb +4 -4
  153. data/lib/shortcut_client_ruby/configuration.rb +163 -32
  154. data/lib/shortcut_client_ruby/models/basic_workspace_info.rb +26 -13
  155. data/lib/shortcut_client_ruby/models/branch.rb +35 -42
  156. data/lib/shortcut_client_ruby/models/category.rb +57 -28
  157. data/lib/shortcut_client_ruby/models/commit.rb +37 -44
  158. data/lib/shortcut_client_ruby/models/create_category.rb +90 -17
  159. data/lib/shortcut_client_ruby/models/create_category_params.rb +87 -14
  160. data/lib/shortcut_client_ruby/models/create_comment_comment.rb +57 -16
  161. data/lib/shortcut_client_ruby/models/create_entity_template.rb +46 -14
  162. data/lib/shortcut_client_ruby/models/create_epic.rb +86 -30
  163. data/lib/shortcut_client_ruby/models/create_epic_comment.rb +57 -16
  164. data/lib/shortcut_client_ruby/models/create_group.rb +104 -21
  165. data/lib/shortcut_client_ruby/models/create_iteration.rb +103 -18
  166. data/lib/shortcut_client_ruby/models/create_label_params.rb +97 -15
  167. data/lib/shortcut_client_ruby/models/create_linked_file.rb +110 -22
  168. data/lib/shortcut_client_ruby/models/create_milestone.rb +75 -19
  169. data/lib/shortcut_client_ruby/models/create_or_delete_story_reaction.rb +25 -12
  170. data/lib/shortcut_client_ruby/models/create_project.rb +104 -22
  171. data/lib/shortcut_client_ruby/models/create_stories.rb +25 -12
  172. data/lib/shortcut_client_ruby/models/create_story_comment.rb +48 -16
  173. data/lib/shortcut_client_ruby/models/create_story_comment_params.rb +48 -16
  174. data/lib/shortcut_client_ruby/models/create_story_contents.rb +57 -32
  175. data/lib/shortcut_client_ruby/models/create_story_link.rb +29 -16
  176. data/lib/shortcut_client_ruby/models/create_story_link_params.rb +29 -16
  177. data/lib/shortcut_client_ruby/models/create_story_params.rb +120 -40
  178. data/lib/shortcut_client_ruby/models/create_task.rb +30 -17
  179. data/lib/shortcut_client_ruby/models/create_task_params.rb +30 -17
  180. data/lib/shortcut_client_ruby/models/delete_stories.rb +35 -12
  181. data/lib/shortcut_client_ruby/models/entity_template.rb +32 -19
  182. data/lib/shortcut_client_ruby/models/entity_template_task.rb +28 -15
  183. data/lib/shortcut_client_ruby/models/epic.rb +62 -124
  184. data/lib/shortcut_client_ruby/models/epic_search_results.rb +28 -20
  185. data/lib/shortcut_client_ruby/models/epic_slim.rb +61 -123
  186. data/lib/shortcut_client_ruby/models/epic_state.rb +59 -20
  187. data/lib/shortcut_client_ruby/models/epic_stats.rb +37 -29
  188. data/lib/shortcut_client_ruby/models/epic_workflow.rb +30 -17
  189. data/lib/shortcut_client_ruby/models/get_epic_stories.rb +25 -12
  190. data/lib/shortcut_client_ruby/models/get_external_link_stories_params.rb +55 -12
  191. data/lib/shortcut_client_ruby/models/get_iteration_stories.rb +25 -12
  192. data/lib/shortcut_client_ruby/models/get_label_stories.rb +25 -12
  193. data/lib/shortcut_client_ruby/models/get_member.rb +25 -12
  194. data/lib/shortcut_client_ruby/models/get_project_stories.rb +25 -12
  195. data/lib/shortcut_client_ruby/models/group.rb +96 -37
  196. data/lib/shortcut_client_ruby/models/history.rb +35 -22
  197. data/lib/shortcut_client_ruby/models/history_action_branch_create.rb +31 -18
  198. data/lib/shortcut_client_ruby/models/history_action_branch_merge.rb +31 -18
  199. data/lib/shortcut_client_ruby/models/history_action_branch_push.rb +31 -18
  200. data/lib/shortcut_client_ruby/models/history_action_label_create.rb +61 -18
  201. data/lib/shortcut_client_ruby/models/history_action_label_delete.rb +30 -17
  202. data/lib/shortcut_client_ruby/models/history_action_label_update.rb +29 -16
  203. data/lib/shortcut_client_ruby/models/history_action_project_update.rb +61 -18
  204. data/lib/shortcut_client_ruby/models/history_action_pull_request.rb +62 -19
  205. data/lib/shortcut_client_ruby/models/history_action_story_comment_create.rb +62 -19
  206. data/lib/shortcut_client_ruby/models/history_action_story_create.rb +82 -39
  207. data/lib/shortcut_client_ruby/models/history_action_story_delete.rb +33 -20
  208. data/lib/shortcut_client_ruby/models/history_action_story_link_create.rb +34 -21
  209. data/lib/shortcut_client_ruby/models/history_action_story_link_delete.rb +34 -31
  210. data/lib/shortcut_client_ruby/models/history_action_story_link_update.rb +35 -22
  211. data/lib/shortcut_client_ruby/models/history_action_story_update.rb +65 -22
  212. data/lib/shortcut_client_ruby/models/history_action_task_create.rb +35 -22
  213. data/lib/shortcut_client_ruby/models/history_action_task_delete.rb +30 -17
  214. data/lib/shortcut_client_ruby/models/history_action_task_update.rb +33 -20
  215. data/lib/shortcut_client_ruby/models/history_changes_story.rb +48 -35
  216. data/lib/shortcut_client_ruby/models/history_changes_story_link.rb +27 -14
  217. data/lib/shortcut_client_ruby/models/history_changes_task.rb +28 -15
  218. data/lib/shortcut_client_ruby/models/history_reference_branch.rb +58 -15
  219. data/lib/shortcut_client_ruby/models/history_reference_commit.rb +58 -15
  220. data/lib/shortcut_client_ruby/models/history_reference_epic.rb +58 -15
  221. data/lib/shortcut_client_ruby/models/history_reference_general.rb +27 -14
  222. data/lib/shortcut_client_ruby/models/history_reference_group.rb +27 -14
  223. data/lib/shortcut_client_ruby/models/history_reference_iteration.rb +58 -15
  224. data/lib/shortcut_client_ruby/models/history_reference_label.rb +58 -15
  225. data/lib/shortcut_client_ruby/models/history_reference_project.rb +58 -15
  226. data/lib/shortcut_client_ruby/models/history_reference_story.rb +61 -18
  227. data/lib/shortcut_client_ruby/models/history_reference_story_task.rb +27 -14
  228. data/lib/shortcut_client_ruby/models/history_reference_workflow_state.rb +30 -17
  229. data/lib/shortcut_client_ruby/models/icon.rb +29 -16
  230. data/lib/shortcut_client_ruby/models/identity.rb +27 -24
  231. data/lib/shortcut_client_ruby/models/iteration.rb +42 -29
  232. data/lib/shortcut_client_ruby/models/iteration_slim.rb +41 -28
  233. data/lib/shortcut_client_ruby/models/iteration_stats.rb +35 -22
  234. data/lib/shortcut_client_ruby/models/label.rb +59 -45
  235. data/lib/shortcut_client_ruby/models/label_slim.rb +58 -44
  236. data/lib/shortcut_client_ruby/models/label_stats.rb +39 -26
  237. data/lib/shortcut_client_ruby/models/linked_file.rb +40 -47
  238. data/lib/shortcut_client_ruby/models/list_epics.rb +25 -12
  239. data/lib/shortcut_client_ruby/models/list_group_stories.rb +26 -13
  240. data/lib/shortcut_client_ruby/models/list_labels.rb +25 -12
  241. data/lib/shortcut_client_ruby/models/list_members.rb +25 -12
  242. data/lib/shortcut_client_ruby/models/max_search_results_exceeded_error.rb +31 -18
  243. data/lib/shortcut_client_ruby/models/member.rb +37 -34
  244. data/lib/shortcut_client_ruby/models/member_info.rb +28 -15
  245. data/lib/shortcut_client_ruby/models/milestone.rb +41 -48
  246. data/lib/shortcut_client_ruby/models/milestone_stats.rb +27 -14
  247. data/lib/shortcut_client_ruby/models/profile.rb +33 -35
  248. data/lib/shortcut_client_ruby/models/project.rb +67 -58
  249. data/lib/shortcut_client_ruby/models/project_stats.rb +27 -14
  250. data/lib/shortcut_client_ruby/models/pull_request.rb +46 -43
  251. data/lib/shortcut_client_ruby/models/pull_request_label.rb +59 -16
  252. data/lib/shortcut_client_ruby/models/repository.rb +33 -55
  253. data/lib/shortcut_client_ruby/models/search.rb +49 -17
  254. data/lib/shortcut_client_ruby/models/search_results.rb +26 -13
  255. data/lib/shortcut_client_ruby/models/search_stories.rb +105 -41
  256. data/lib/shortcut_client_ruby/models/story.rb +74 -131
  257. data/lib/shortcut_client_ruby/models/story_comment.rb +38 -40
  258. data/lib/shortcut_client_ruby/models/story_contents.rb +43 -30
  259. data/lib/shortcut_client_ruby/models/story_contents_task.rb +29 -16
  260. data/lib/shortcut_client_ruby/models/story_history_change_adds_removes_int.rb +26 -13
  261. data/lib/shortcut_client_ruby/models/story_history_change_adds_removes_uuid.rb +26 -13
  262. data/lib/shortcut_client_ruby/models/story_history_change_old_new_bool.rb +26 -13
  263. data/lib/shortcut_client_ruby/models/story_history_change_old_new_int.rb +26 -13
  264. data/lib/shortcut_client_ruby/models/story_history_change_old_new_str.rb +26 -13
  265. data/lib/shortcut_client_ruby/models/story_history_change_old_new_uuid.rb +26 -13
  266. data/lib/shortcut_client_ruby/models/story_link.rb +32 -19
  267. data/lib/shortcut_client_ruby/models/story_reaction.rb +26 -13
  268. data/lib/shortcut_client_ruby/models/story_search_results.rb +28 -20
  269. data/lib/shortcut_client_ruby/models/story_slim.rb +72 -129
  270. data/lib/shortcut_client_ruby/models/story_stats.rb +25 -12
  271. data/lib/shortcut_client_ruby/models/task.rb +38 -40
  272. data/lib/shortcut_client_ruby/models/threaded_comment.rb +37 -29
  273. data/lib/shortcut_client_ruby/models/typed_story_link.rb +33 -20
  274. data/lib/shortcut_client_ruby/models/unusable_entitlement_error.rb +85 -16
  275. data/lib/shortcut_client_ruby/models/update_category.rb +68 -14
  276. data/lib/shortcut_client_ruby/models/update_comment.rb +25 -12
  277. data/lib/shortcut_client_ruby/models/update_entity_template.rb +41 -13
  278. data/lib/shortcut_client_ruby/models/update_epic.rb +82 -30
  279. data/lib/shortcut_client_ruby/models/update_file.rb +54 -17
  280. data/lib/shortcut_client_ruby/models/update_group.rb +97 -22
  281. data/lib/shortcut_client_ruby/models/update_iteration.rb +91 -18
  282. data/lib/shortcut_client_ruby/models/update_label.rb +78 -15
  283. data/lib/shortcut_client_ruby/models/update_linked_file.rb +101 -21
  284. data/lib/shortcut_client_ruby/models/update_milestone.rb +73 -21
  285. data/lib/shortcut_client_ruby/models/update_project.rb +98 -20
  286. data/lib/shortcut_client_ruby/models/update_stories.rb +83 -36
  287. data/lib/shortcut_client_ruby/models/update_story.rb +135 -41
  288. data/lib/shortcut_client_ruby/models/update_story_comment.rb +44 -12
  289. data/lib/shortcut_client_ruby/models/update_story_contents.rb +57 -32
  290. data/lib/shortcut_client_ruby/models/update_story_link.rb +29 -16
  291. data/lib/shortcut_client_ruby/models/update_task.rb +29 -16
  292. data/lib/shortcut_client_ruby/models/uploaded_file.rb +41 -53
  293. data/lib/shortcut_client_ruby/models/workflow.rb +35 -22
  294. data/lib/shortcut_client_ruby/models/workflow_state.rb +60 -26
  295. data/lib/shortcut_client_ruby/version.rb +5 -4
  296. data/lib/shortcut_client_ruby.rb +4 -4
  297. data/openapi-generator-cli.jar +0 -0
  298. data/shortcut_client_ruby-0.0.4.gem +0 -0
  299. data/shortcut_client_ruby.gemspec +7 -6
  300. data/spec/api/default_api_spec.rb +64 -63
  301. data/spec/api_client_spec.rb +7 -44
  302. data/spec/configuration_spec.rb +7 -6
  303. data/spec/models/basic_workspace_info_spec.rb +8 -14
  304. data/spec/models/branch_spec.rb +8 -14
  305. data/spec/models/category_spec.rb +8 -14
  306. data/spec/models/commit_spec.rb +8 -14
  307. data/spec/models/create_category_params_spec.rb +8 -14
  308. data/spec/models/create_category_spec.rb +9 -15
  309. data/spec/models/create_comment_comment_spec.rb +8 -14
  310. data/spec/models/create_entity_template_spec.rb +8 -14
  311. data/spec/models/create_epic_comment_spec.rb +8 -14
  312. data/spec/models/create_epic_spec.rb +9 -15
  313. data/spec/models/create_group_spec.rb +9 -15
  314. data/spec/models/create_iteration_spec.rb +8 -14
  315. data/spec/models/create_label_params_spec.rb +8 -14
  316. data/spec/models/create_linked_file_spec.rb +9 -15
  317. data/spec/models/create_milestone_spec.rb +9 -15
  318. data/spec/models/create_or_delete_story_reaction_spec.rb +8 -14
  319. data/spec/models/create_project_spec.rb +8 -14
  320. data/spec/models/create_stories_spec.rb +8 -14
  321. data/spec/models/create_story_comment_params_spec.rb +8 -14
  322. data/spec/models/create_story_comment_spec.rb +8 -14
  323. data/spec/models/create_story_contents_spec.rb +8 -14
  324. data/spec/models/create_story_link_params_spec.rb +9 -15
  325. data/spec/models/create_story_link_spec.rb +9 -15
  326. data/spec/models/create_story_params_spec.rb +9 -15
  327. data/spec/models/create_task_params_spec.rb +8 -14
  328. data/spec/models/create_task_spec.rb +8 -14
  329. data/spec/models/delete_stories_spec.rb +8 -14
  330. data/spec/models/entity_template_spec.rb +8 -14
  331. data/spec/models/entity_template_task_spec.rb +8 -14
  332. data/spec/models/epic_search_results_spec.rb +8 -14
  333. data/spec/models/epic_slim_spec.rb +8 -14
  334. data/spec/models/epic_spec.rb +8 -14
  335. data/spec/models/epic_state_spec.rb +8 -14
  336. data/spec/models/epic_stats_spec.rb +8 -14
  337. data/spec/models/epic_workflow_spec.rb +8 -14
  338. data/spec/models/get_epic_stories_spec.rb +8 -14
  339. data/spec/models/get_external_link_stories_params_spec.rb +8 -14
  340. data/spec/models/get_iteration_stories_spec.rb +8 -14
  341. data/spec/models/get_label_stories_spec.rb +8 -14
  342. data/spec/models/get_member_spec.rb +8 -14
  343. data/spec/models/get_project_stories_spec.rb +8 -14
  344. data/spec/models/group_spec.rb +9 -15
  345. data/spec/models/history_action_branch_create_spec.rb +9 -15
  346. data/spec/models/history_action_branch_merge_spec.rb +9 -15
  347. data/spec/models/history_action_branch_push_spec.rb +9 -15
  348. data/spec/models/history_action_label_create_spec.rb +9 -15
  349. data/spec/models/history_action_label_delete_spec.rb +9 -15
  350. data/spec/models/history_action_label_update_spec.rb +9 -15
  351. data/spec/models/history_action_project_update_spec.rb +9 -15
  352. data/spec/models/history_action_pull_request_spec.rb +9 -15
  353. data/spec/models/history_action_story_comment_create_spec.rb +9 -15
  354. data/spec/models/history_action_story_create_spec.rb +10 -16
  355. data/spec/models/history_action_story_delete_spec.rb +10 -16
  356. data/spec/models/history_action_story_link_create_spec.rb +10 -16
  357. data/spec/models/history_action_story_link_delete_spec.rb +10 -16
  358. data/spec/models/history_action_story_link_update_spec.rb +10 -16
  359. data/spec/models/history_action_story_update_spec.rb +10 -16
  360. data/spec/models/history_action_task_create_spec.rb +9 -15
  361. data/spec/models/history_action_task_delete_spec.rb +9 -15
  362. data/spec/models/history_action_task_update_spec.rb +9 -15
  363. data/spec/models/history_changes_story_link_spec.rb +8 -14
  364. data/spec/models/history_changes_story_spec.rb +8 -14
  365. data/spec/models/history_changes_task_spec.rb +8 -14
  366. data/spec/models/history_reference_branch_spec.rb +8 -14
  367. data/spec/models/history_reference_commit_spec.rb +8 -14
  368. data/spec/models/history_reference_epic_spec.rb +8 -14
  369. data/spec/models/history_reference_general_spec.rb +8 -14
  370. data/spec/models/history_reference_group_spec.rb +8 -14
  371. data/spec/models/history_reference_iteration_spec.rb +8 -14
  372. data/spec/models/history_reference_label_spec.rb +8 -14
  373. data/spec/models/history_reference_project_spec.rb +8 -14
  374. data/spec/models/history_reference_story_spec.rb +9 -15
  375. data/spec/models/history_reference_story_task_spec.rb +8 -14
  376. data/spec/models/history_reference_workflow_state_spec.rb +9 -15
  377. data/spec/models/history_spec.rb +9 -15
  378. data/spec/models/icon_spec.rb +8 -14
  379. data/spec/models/identity_spec.rb +8 -14
  380. data/spec/models/iteration_slim_spec.rb +8 -14
  381. data/spec/models/iteration_spec.rb +8 -14
  382. data/spec/models/iteration_stats_spec.rb +8 -14
  383. data/spec/models/label_slim_spec.rb +8 -14
  384. data/spec/models/label_spec.rb +8 -14
  385. data/spec/models/label_stats_spec.rb +8 -14
  386. data/spec/models/linked_file_spec.rb +8 -14
  387. data/spec/models/list_epics_spec.rb +8 -14
  388. data/spec/models/list_group_stories_spec.rb +8 -14
  389. data/spec/models/list_labels_spec.rb +8 -14
  390. data/spec/models/list_members_spec.rb +8 -14
  391. data/spec/models/max_search_results_exceeded_error_spec.rb +11 -17
  392. data/spec/models/member_info_spec.rb +8 -14
  393. data/spec/models/member_spec.rb +9 -15
  394. data/spec/models/milestone_spec.rb +8 -14
  395. data/spec/models/milestone_stats_spec.rb +8 -14
  396. data/spec/models/profile_spec.rb +8 -14
  397. data/spec/models/project_spec.rb +8 -14
  398. data/spec/models/project_stats_spec.rb +8 -14
  399. data/spec/models/pull_request_label_spec.rb +8 -14
  400. data/spec/models/pull_request_spec.rb +8 -14
  401. data/spec/models/repository_spec.rb +8 -14
  402. data/spec/models/search_results_spec.rb +8 -14
  403. data/spec/models/search_spec.rb +9 -15
  404. data/spec/models/search_stories_spec.rb +10 -16
  405. data/spec/models/story_comment_spec.rb +8 -14
  406. data/spec/models/story_contents_spec.rb +8 -14
  407. data/spec/models/story_contents_task_spec.rb +8 -14
  408. data/spec/models/story_history_change_adds_removes_int_spec.rb +8 -14
  409. data/spec/models/story_history_change_adds_removes_uuid_spec.rb +8 -14
  410. data/spec/models/story_history_change_old_new_bool_spec.rb +8 -14
  411. data/spec/models/story_history_change_old_new_int_spec.rb +8 -14
  412. data/spec/models/story_history_change_old_new_str_spec.rb +8 -14
  413. data/spec/models/story_history_change_old_new_uuid_spec.rb +8 -14
  414. data/spec/models/story_link_spec.rb +8 -14
  415. data/spec/models/story_reaction_spec.rb +8 -14
  416. data/spec/models/story_search_results_spec.rb +8 -14
  417. data/spec/models/story_slim_spec.rb +8 -14
  418. data/spec/models/story_spec.rb +8 -14
  419. data/spec/models/story_stats_spec.rb +8 -14
  420. data/spec/models/task_spec.rb +8 -14
  421. data/spec/models/threaded_comment_spec.rb +8 -14
  422. data/spec/models/typed_story_link_spec.rb +8 -14
  423. data/spec/models/unusable_entitlement_error_spec.rb +9 -15
  424. data/spec/models/update_category_spec.rb +8 -14
  425. data/spec/models/update_comment_spec.rb +8 -14
  426. data/spec/models/update_entity_template_spec.rb +8 -14
  427. data/spec/models/update_epic_spec.rb +9 -15
  428. data/spec/models/update_file_spec.rb +8 -14
  429. data/spec/models/update_group_spec.rb +9 -15
  430. data/spec/models/update_iteration_spec.rb +8 -14
  431. data/spec/models/update_label_spec.rb +8 -14
  432. data/spec/models/update_linked_file_spec.rb +9 -15
  433. data/spec/models/update_milestone_spec.rb +9 -15
  434. data/spec/models/update_project_spec.rb +8 -14
  435. data/spec/models/update_stories_spec.rb +10 -16
  436. data/spec/models/update_story_comment_spec.rb +8 -14
  437. data/spec/models/update_story_contents_spec.rb +8 -14
  438. data/spec/models/update_story_link_spec.rb +9 -15
  439. data/spec/models/update_story_spec.rb +10 -16
  440. data/spec/models/update_task_spec.rb +8 -14
  441. data/spec/models/uploaded_file_spec.rb +8 -14
  442. data/spec/models/workflow_spec.rb +8 -14
  443. data/spec/models/workflow_state_spec.rb +8 -14
  444. data/spec/spec_helper.rb +4 -3
  445. metadata +18 -30
  446. data/docs/V3FilesBody.md +0 -11
  447. data/lib/shortcut/client/ruby/version.rb +0 -9
  448. data/lib/shortcut/client/ruby.rb +0 -12
  449. data/lib/shortcut_client_ruby/models/v3_files_body.rb +0 -252
  450. data/shortcut-client-ruby.gemspec +0 -36
  451. data/spec/base_object_spec.rb +0 -109
  452. data/spec/models/v3_files_body_spec.rb +0 -64
data/README.md CHANGED
@@ -4,11 +4,11 @@ Shortcut - the Ruby gem for the Shortcut API
4
4
 
5
5
  Shortcut API
6
6
 
7
- This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 3.0
10
- - Package version: 0.0.4
11
- - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
10
+ - Package version: 0.1.2
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
14
14
 
@@ -23,2020 +23,63 @@ gem build shortcut_client_ruby.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./shortcut_client_ruby-0.0.4.gem
26
+ gem install ./shortcut_client_ruby-0.1.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./shortcut_client_ruby-0.0.4.gem` to install the development dependencies)
29
28
 
30
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
-
32
- Finally add this to the Gemfile:
33
-
34
- gem 'shortcut_client_ruby', '~> 0.0.4'
35
-
36
- ### Install from Git
37
-
38
- If the Ruby gem is hosted at a git repository: https://github.com/ngouy/shortcut_client_ruby, then add the following in the Gemfile:
39
-
40
- gem 'shortcut_client_ruby', :git => 'https://github.com/ngouy/shortcut_client_ruby.git'
41
-
42
- ### Include the Ruby code directly
43
-
44
- Include the Ruby code directly using `-I` as follows:
45
-
46
- ```shell
47
- ruby -Ilib script.rb
48
- ```
49
-
50
- ## Getting Started
51
-
52
- Please follow the [installation](#installation) procedure and then run the following code:
53
- ```ruby
54
- # Load the gem
55
- require 'shortcut_client_ruby'
56
- # Setup authorization
57
- Shortcut.configure do |config|
58
- # Configure API key authorization: api_token
59
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
60
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
61
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
62
- end
63
-
64
- api_instance = Shortcut::DefaultApi.new
65
- body = Shortcut::CreateCategory.new # CreateCategory |
66
-
67
-
68
- begin
69
- #Create Category
70
- result = api_instance.create_category(body)
71
- p result
72
- rescue Shortcut::ApiError => e
73
- puts "Exception when calling DefaultApi->create_category: #{e}"
74
- end
75
- # Setup authorization
76
- Shortcut.configure do |config|
77
- # Configure API key authorization: api_token
78
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
79
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
80
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
81
- end
82
-
83
- api_instance = Shortcut::DefaultApi.new
84
- body = Shortcut::CreateEntityTemplate.new # CreateEntityTemplate | Request paramaters for creating an entirely new entity template.
85
-
86
-
87
- begin
88
- #Create Entity Template
89
- result = api_instance.create_entity_template(body)
90
- p result
91
- rescue Shortcut::ApiError => e
92
- puts "Exception when calling DefaultApi->create_entity_template: #{e}"
93
- end
94
- # Setup authorization
95
- Shortcut.configure do |config|
96
- # Configure API key authorization: api_token
97
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
98
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
99
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
100
- end
101
-
102
- api_instance = Shortcut::DefaultApi.new
103
- body = Shortcut::CreateEpic.new # CreateEpic |
104
-
105
-
106
- begin
107
- #Create Epic
108
- result = api_instance.create_epic(body)
109
- p result
110
- rescue Shortcut::ApiError => e
111
- puts "Exception when calling DefaultApi->create_epic: #{e}"
112
- end
113
- # Setup authorization
114
- Shortcut.configure do |config|
115
- # Configure API key authorization: api_token
116
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
117
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
118
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
119
- end
120
-
121
- api_instance = Shortcut::DefaultApi.new
122
- body = Shortcut::CreateEpicComment.new # CreateEpicComment |
123
- epic_public_id = 789 # Integer | The ID of the associated Epic.
124
-
125
-
126
- begin
127
- #Create Epic Comment
128
- result = api_instance.create_epic_comment(body, epic_public_id)
129
- p result
130
- rescue Shortcut::ApiError => e
131
- puts "Exception when calling DefaultApi->create_epic_comment: #{e}"
132
- end
133
- # Setup authorization
134
- Shortcut.configure do |config|
135
- # Configure API key authorization: api_token
136
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
137
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
138
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
139
- end
140
-
141
- api_instance = Shortcut::DefaultApi.new
142
- body = Shortcut::CreateCommentComment.new # CreateCommentComment |
143
- epic_public_id = 789 # Integer | The ID of the associated Epic.
144
- comment_public_id = 789 # Integer | The ID of the parent Epic Comment.
145
-
146
-
147
- begin
148
- #Create Epic Comment Comment
149
- result = api_instance.create_epic_comment_comment(body, epic_public_id, comment_public_id)
150
- p result
151
- rescue Shortcut::ApiError => e
152
- puts "Exception when calling DefaultApi->create_epic_comment_comment: #{e}"
153
- end
154
- # Setup authorization
155
- Shortcut.configure do |config|
156
- # Configure API key authorization: api_token
157
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
158
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
159
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
160
- end
161
-
162
- api_instance = Shortcut::DefaultApi.new
163
- body = Shortcut::CreateGroup.new # CreateGroup |
164
-
165
-
166
- begin
167
- #Create Group
168
- result = api_instance.create_group(body)
169
- p result
170
- rescue Shortcut::ApiError => e
171
- puts "Exception when calling DefaultApi->create_group: #{e}"
172
- end
173
- # Setup authorization
174
- Shortcut.configure do |config|
175
- # Configure API key authorization: api_token
176
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
177
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
178
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
179
- end
180
-
181
- api_instance = Shortcut::DefaultApi.new
182
- body = Shortcut::CreateIteration.new # CreateIteration |
183
-
184
-
185
- begin
186
- #Create Iteration
187
- result = api_instance.create_iteration(body)
188
- p result
189
- rescue Shortcut::ApiError => e
190
- puts "Exception when calling DefaultApi->create_iteration: #{e}"
191
- end
192
- # Setup authorization
193
- Shortcut.configure do |config|
194
- # Configure API key authorization: api_token
195
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
196
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
198
- end
199
-
200
- api_instance = Shortcut::DefaultApi.new
201
- body = Shortcut::CreateLabelParams.new # CreateLabelParams | Request parameters for creating a Label on a Shortcut Story.
202
-
203
-
204
- begin
205
- #Create Label
206
- result = api_instance.create_label(body)
207
- p result
208
- rescue Shortcut::ApiError => e
209
- puts "Exception when calling DefaultApi->create_label: #{e}"
210
- end
211
- # Setup authorization
212
- Shortcut.configure do |config|
213
- # Configure API key authorization: api_token
214
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
215
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
216
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
217
- end
218
-
219
- api_instance = Shortcut::DefaultApi.new
220
- body = Shortcut::CreateLinkedFile.new # CreateLinkedFile |
221
-
222
-
223
- begin
224
- #Create Linked File
225
- result = api_instance.create_linked_file(body)
226
- p result
227
- rescue Shortcut::ApiError => e
228
- puts "Exception when calling DefaultApi->create_linked_file: #{e}"
229
- end
230
- # Setup authorization
231
- Shortcut.configure do |config|
232
- # Configure API key authorization: api_token
233
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
234
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
235
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
236
- end
237
-
238
- api_instance = Shortcut::DefaultApi.new
239
- body = Shortcut::CreateMilestone.new # CreateMilestone |
240
-
241
-
242
- begin
243
- #Create Milestone
244
- result = api_instance.create_milestone(body)
245
- p result
246
- rescue Shortcut::ApiError => e
247
- puts "Exception when calling DefaultApi->create_milestone: #{e}"
248
- end
249
- # Setup authorization
250
- Shortcut.configure do |config|
251
- # Configure API key authorization: api_token
252
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
253
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
254
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
255
- end
256
-
257
- api_instance = Shortcut::DefaultApi.new
258
- body = Shortcut::CreateStories.new # CreateStories |
259
-
260
-
261
- begin
262
- #Create Multiple Stories
263
- result = api_instance.create_multiple_stories(body)
264
- p result
265
- rescue Shortcut::ApiError => e
266
- puts "Exception when calling DefaultApi->create_multiple_stories: #{e}"
267
- end
268
- # Setup authorization
269
- Shortcut.configure do |config|
270
- # Configure API key authorization: api_token
271
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
272
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
273
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
274
- end
275
-
276
- api_instance = Shortcut::DefaultApi.new
277
- body = Shortcut::CreateProject.new # CreateProject |
278
-
279
-
280
- begin
281
- #Create Project
282
- result = api_instance.create_project(body)
283
- p result
284
- rescue Shortcut::ApiError => e
285
- puts "Exception when calling DefaultApi->create_project: #{e}"
286
- end
287
- # Setup authorization
288
- Shortcut.configure do |config|
289
- # Configure API key authorization: api_token
290
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
291
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
292
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
293
- end
294
-
295
- api_instance = Shortcut::DefaultApi.new
296
- body = Shortcut::CreateStoryParams.new # CreateStoryParams | Request parameters for creating a story.
297
-
298
-
299
- begin
300
- #Create Story
301
- result = api_instance.create_story(body)
302
- p result
303
- rescue Shortcut::ApiError => e
304
- puts "Exception when calling DefaultApi->create_story: #{e}"
305
- end
306
- # Setup authorization
307
- Shortcut.configure do |config|
308
- # Configure API key authorization: api_token
309
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
310
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
311
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
312
- end
313
-
314
- api_instance = Shortcut::DefaultApi.new
315
- body = Shortcut::CreateStoryComment.new # CreateStoryComment |
316
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
317
-
318
-
319
- begin
320
- #Create Story Comment
321
- result = api_instance.create_story_comment(body, story_public_id)
322
- p result
323
- rescue Shortcut::ApiError => e
324
- puts "Exception when calling DefaultApi->create_story_comment: #{e}"
325
- end
326
- # Setup authorization
327
- Shortcut.configure do |config|
328
- # Configure API key authorization: api_token
329
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
330
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
331
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
332
- end
333
-
334
- api_instance = Shortcut::DefaultApi.new
335
- body = Shortcut::CreateStoryLink.new # CreateStoryLink |
336
-
337
-
338
- begin
339
- #Create Story Link
340
- result = api_instance.create_story_link(body)
341
- p result
342
- rescue Shortcut::ApiError => e
343
- puts "Exception when calling DefaultApi->create_story_link: #{e}"
344
- end
345
- # Setup authorization
346
- Shortcut.configure do |config|
347
- # Configure API key authorization: api_token
348
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
349
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
350
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
351
- end
352
-
353
- api_instance = Shortcut::DefaultApi.new
354
- body = Shortcut::CreateOrDeleteStoryReaction.new # CreateOrDeleteStoryReaction |
355
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
356
- comment_public_id = 789 # Integer | The ID of the Comment.
357
-
358
-
359
- begin
360
- #Create Story Reaction
361
- result = api_instance.create_story_reaction(body, story_public_id, comment_public_id)
362
- p result
363
- rescue Shortcut::ApiError => e
364
- puts "Exception when calling DefaultApi->create_story_reaction: #{e}"
365
- end
366
- # Setup authorization
367
- Shortcut.configure do |config|
368
- # Configure API key authorization: api_token
369
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
370
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
371
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
372
- end
373
-
374
- api_instance = Shortcut::DefaultApi.new
375
- body = Shortcut::CreateTask.new # CreateTask |
376
- story_public_id = 789 # Integer | The ID of the Story that the Task will be in.
377
-
378
-
379
- begin
380
- #Create Task
381
- result = api_instance.create_task(body, story_public_id)
382
- p result
383
- rescue Shortcut::ApiError => e
384
- puts "Exception when calling DefaultApi->create_task: #{e}"
385
- end
386
- # Setup authorization
387
- Shortcut.configure do |config|
388
- # Configure API key authorization: api_token
389
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
390
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
391
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
392
- end
393
-
394
- api_instance = Shortcut::DefaultApi.new
395
- category_public_id = 789 # Integer | The unique ID of the Category.
396
-
397
-
398
- begin
399
- #Delete Category
400
- api_instance.delete_category(category_public_id)
401
- rescue Shortcut::ApiError => e
402
- puts "Exception when calling DefaultApi->delete_category: #{e}"
403
- end
404
- # Setup authorization
405
- Shortcut.configure do |config|
406
- # Configure API key authorization: api_token
407
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
408
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
409
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
410
- end
411
-
412
- api_instance = Shortcut::DefaultApi.new
413
- entity_template_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the entity template.
414
-
415
-
416
- begin
417
- #Delete Entity Template
418
- api_instance.delete_entity_template(entity_template_public_id)
419
- rescue Shortcut::ApiError => e
420
- puts "Exception when calling DefaultApi->delete_entity_template: #{e}"
421
- end
422
- # Setup authorization
423
- Shortcut.configure do |config|
424
- # Configure API key authorization: api_token
425
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
426
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
427
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
428
- end
429
-
430
- api_instance = Shortcut::DefaultApi.new
431
- epic_public_id = 789 # Integer | The unique ID of the Epic.
432
-
433
-
434
- begin
435
- #Delete Epic
436
- api_instance.delete_epic(epic_public_id)
437
- rescue Shortcut::ApiError => e
438
- puts "Exception when calling DefaultApi->delete_epic: #{e}"
439
- end
440
- # Setup authorization
441
- Shortcut.configure do |config|
442
- # Configure API key authorization: api_token
443
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
444
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
445
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
446
- end
447
-
448
- api_instance = Shortcut::DefaultApi.new
449
- epic_public_id = 789 # Integer | The ID of the associated Epic.
450
- comment_public_id = 789 # Integer | The ID of the Comment.
451
-
452
-
453
- begin
454
- #Delete Epic Comment
455
- api_instance.delete_epic_comment(epic_public_id, comment_public_id)
456
- rescue Shortcut::ApiError => e
457
- puts "Exception when calling DefaultApi->delete_epic_comment: #{e}"
458
- end
459
- # Setup authorization
460
- Shortcut.configure do |config|
461
- # Configure API key authorization: api_token
462
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
463
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
464
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
465
- end
466
-
467
- api_instance = Shortcut::DefaultApi.new
468
- file_public_id = 789 # Integer | The File’s unique ID.
469
-
470
-
471
- begin
472
- #Delete File
473
- api_instance.delete_file(file_public_id)
474
- rescue Shortcut::ApiError => e
475
- puts "Exception when calling DefaultApi->delete_file: #{e}"
476
- end
477
- # Setup authorization
478
- Shortcut.configure do |config|
479
- # Configure API key authorization: api_token
480
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
481
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
482
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
483
- end
484
-
485
- api_instance = Shortcut::DefaultApi.new
486
- iteration_public_id = 789 # Integer | The unique ID of the Iteration.
487
-
488
-
489
- begin
490
- #Delete Iteration
491
- api_instance.delete_iteration(iteration_public_id)
492
- rescue Shortcut::ApiError => e
493
- puts "Exception when calling DefaultApi->delete_iteration: #{e}"
494
- end
495
- # Setup authorization
496
- Shortcut.configure do |config|
497
- # Configure API key authorization: api_token
498
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
499
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
500
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
501
- end
502
-
503
- api_instance = Shortcut::DefaultApi.new
504
- label_public_id = 789 # Integer | The unique ID of the Label.
505
-
506
-
507
- begin
508
- #Delete Label
509
- api_instance.delete_label(label_public_id)
510
- rescue Shortcut::ApiError => e
511
- puts "Exception when calling DefaultApi->delete_label: #{e}"
512
- end
513
- # Setup authorization
514
- Shortcut.configure do |config|
515
- # Configure API key authorization: api_token
516
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
517
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
518
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
519
- end
520
-
521
- api_instance = Shortcut::DefaultApi.new
522
- linked_file_public_id = 789 # Integer | The unique identifier of the linked file.
523
-
524
-
525
- begin
526
- #Delete Linked File
527
- api_instance.delete_linked_file(linked_file_public_id)
528
- rescue Shortcut::ApiError => e
529
- puts "Exception when calling DefaultApi->delete_linked_file: #{e}"
530
- end
531
- # Setup authorization
532
- Shortcut.configure do |config|
533
- # Configure API key authorization: api_token
534
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
535
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
536
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
537
- end
538
-
539
- api_instance = Shortcut::DefaultApi.new
540
- milestone_public_id = 789 # Integer | The ID of the Milestone.
541
-
542
-
543
- begin
544
- #Delete Milestone
545
- api_instance.delete_milestone(milestone_public_id)
546
- rescue Shortcut::ApiError => e
547
- puts "Exception when calling DefaultApi->delete_milestone: #{e}"
548
- end
549
- # Setup authorization
550
- Shortcut.configure do |config|
551
- # Configure API key authorization: api_token
552
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
553
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
554
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
555
- end
556
-
557
- api_instance = Shortcut::DefaultApi.new
558
- body = Shortcut::DeleteStories.new # DeleteStories |
559
-
560
-
561
- begin
562
- #Delete Multiple Stories
563
- api_instance.delete_multiple_stories(body)
564
- rescue Shortcut::ApiError => e
565
- puts "Exception when calling DefaultApi->delete_multiple_stories: #{e}"
566
- end
567
- # Setup authorization
568
- Shortcut.configure do |config|
569
- # Configure API key authorization: api_token
570
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
571
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
572
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
573
- end
574
-
575
- api_instance = Shortcut::DefaultApi.new
576
- project_public_id = 789 # Integer | The unique ID of the Project.
577
-
578
-
579
- begin
580
- #Delete Project
581
- api_instance.delete_project(project_public_id)
582
- rescue Shortcut::ApiError => e
583
- puts "Exception when calling DefaultApi->delete_project: #{e}"
584
- end
585
- # Setup authorization
586
- Shortcut.configure do |config|
587
- # Configure API key authorization: api_token
588
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
589
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
590
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
591
- end
592
-
593
- api_instance = Shortcut::DefaultApi.new
594
- story_public_id = 789 # Integer | The ID of the Story.
595
-
596
-
597
- begin
598
- #Delete Story
599
- api_instance.delete_story(story_public_id)
600
- rescue Shortcut::ApiError => e
601
- puts "Exception when calling DefaultApi->delete_story: #{e}"
602
- end
603
- # Setup authorization
604
- Shortcut.configure do |config|
605
- # Configure API key authorization: api_token
606
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
607
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
608
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
609
- end
610
-
611
- api_instance = Shortcut::DefaultApi.new
612
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
613
- comment_public_id = 789 # Integer | The ID of the Comment.
614
-
615
-
616
- begin
617
- #Delete Story Comment
618
- api_instance.delete_story_comment(story_public_id, comment_public_id)
619
- rescue Shortcut::ApiError => e
620
- puts "Exception when calling DefaultApi->delete_story_comment: #{e}"
621
- end
622
- # Setup authorization
623
- Shortcut.configure do |config|
624
- # Configure API key authorization: api_token
625
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
626
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
627
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
628
- end
629
-
630
- api_instance = Shortcut::DefaultApi.new
631
- story_link_public_id = 789 # Integer | The unique ID of the Story Link.
632
-
633
-
634
- begin
635
- #Delete Story Link
636
- api_instance.delete_story_link(story_link_public_id)
637
- rescue Shortcut::ApiError => e
638
- puts "Exception when calling DefaultApi->delete_story_link: #{e}"
639
- end
640
- # Setup authorization
641
- Shortcut.configure do |config|
642
- # Configure API key authorization: api_token
643
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
644
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
645
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
646
- end
647
-
648
- api_instance = Shortcut::DefaultApi.new
649
- body = Shortcut::CreateOrDeleteStoryReaction.new # CreateOrDeleteStoryReaction |
650
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
651
- comment_public_id = 789 # Integer | The ID of the Comment.
652
-
653
-
654
- begin
655
- #Delete Story Reaction
656
- api_instance.delete_story_reaction(body, story_public_id, comment_public_id)
657
- rescue Shortcut::ApiError => e
658
- puts "Exception when calling DefaultApi->delete_story_reaction: #{e}"
659
- end
660
- # Setup authorization
661
- Shortcut.configure do |config|
662
- # Configure API key authorization: api_token
663
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
664
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
665
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
666
- end
667
-
668
- api_instance = Shortcut::DefaultApi.new
669
- story_public_id = 789 # Integer | The unique ID of the Story this Task is associated with.
670
- task_public_id = 789 # Integer | The unique ID of the Task.
671
-
672
-
673
- begin
674
- #Delete Task
675
- api_instance.delete_task(story_public_id, task_public_id)
676
- rescue Shortcut::ApiError => e
677
- puts "Exception when calling DefaultApi->delete_task: #{e}"
678
- end
679
- # Setup authorization
680
- Shortcut.configure do |config|
681
- # Configure API key authorization: api_token
682
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
683
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
684
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
685
- end
686
-
687
- api_instance = Shortcut::DefaultApi.new
688
-
689
- begin
690
- #Disable Groups
691
- api_instance.disable_groups
692
- rescue Shortcut::ApiError => e
693
- puts "Exception when calling DefaultApi->disable_groups: #{e}"
694
- end
695
- # Setup authorization
696
- Shortcut.configure do |config|
697
- # Configure API key authorization: api_token
698
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
699
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
700
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
701
- end
702
-
703
- api_instance = Shortcut::DefaultApi.new
704
-
705
- begin
706
- #Disable Iterations
707
- api_instance.disable_iterations
708
- rescue Shortcut::ApiError => e
709
- puts "Exception when calling DefaultApi->disable_iterations: #{e}"
710
- end
711
- # Setup authorization
712
- Shortcut.configure do |config|
713
- # Configure API key authorization: api_token
714
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
715
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
716
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
717
- end
718
-
719
- api_instance = Shortcut::DefaultApi.new
720
-
721
- begin
722
- #Disable Story Templates
723
- api_instance.disable_story_templates
724
- rescue Shortcut::ApiError => e
725
- puts "Exception when calling DefaultApi->disable_story_templates: #{e}"
726
- end
727
- # Setup authorization
728
- Shortcut.configure do |config|
729
- # Configure API key authorization: api_token
730
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
731
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
732
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
733
- end
734
-
735
- api_instance = Shortcut::DefaultApi.new
736
-
737
- begin
738
- #Enable Groups
739
- api_instance.enable_groups
740
- rescue Shortcut::ApiError => e
741
- puts "Exception when calling DefaultApi->enable_groups: #{e}"
742
- end
743
- # Setup authorization
744
- Shortcut.configure do |config|
745
- # Configure API key authorization: api_token
746
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
747
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
748
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
749
- end
750
-
751
- api_instance = Shortcut::DefaultApi.new
752
-
753
- begin
754
- #Enable Iterations
755
- api_instance.enable_iterations
756
- rescue Shortcut::ApiError => e
757
- puts "Exception when calling DefaultApi->enable_iterations: #{e}"
758
- end
759
- # Setup authorization
760
- Shortcut.configure do |config|
761
- # Configure API key authorization: api_token
762
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
763
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
764
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
765
- end
766
-
767
- api_instance = Shortcut::DefaultApi.new
768
-
769
- begin
770
- #Enable Story Templates
771
- api_instance.enable_story_templates
772
- rescue Shortcut::ApiError => e
773
- puts "Exception when calling DefaultApi->enable_story_templates: #{e}"
774
- end
775
- # Setup authorization
776
- Shortcut.configure do |config|
777
- # Configure API key authorization: api_token
778
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
779
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
780
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
781
- end
782
-
783
- api_instance = Shortcut::DefaultApi.new
784
- category_public_id = 789 # Integer | The unique ID of the Category.
785
-
786
-
787
- begin
788
- #Get Category
789
- result = api_instance.get_category(category_public_id)
790
- p result
791
- rescue Shortcut::ApiError => e
792
- puts "Exception when calling DefaultApi->get_category: #{e}"
793
- end
794
- # Setup authorization
795
- Shortcut.configure do |config|
796
- # Configure API key authorization: api_token
797
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
798
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
799
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
800
- end
801
-
802
- api_instance = Shortcut::DefaultApi.new
803
-
804
- begin
805
- #Get Current Member Info
806
- result = api_instance.get_current_member_info
807
- p result
808
- rescue Shortcut::ApiError => e
809
- puts "Exception when calling DefaultApi->get_current_member_info: #{e}"
810
- end
811
- # Setup authorization
812
- Shortcut.configure do |config|
813
- # Configure API key authorization: api_token
814
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
815
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
816
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
817
- end
818
-
819
- api_instance = Shortcut::DefaultApi.new
820
- entity_template_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the entity template.
821
-
822
-
823
- begin
824
- #Get Entity Template
825
- result = api_instance.get_entity_template(entity_template_public_id)
826
- p result
827
- rescue Shortcut::ApiError => e
828
- puts "Exception when calling DefaultApi->get_entity_template: #{e}"
829
- end
830
- # Setup authorization
831
- Shortcut.configure do |config|
832
- # Configure API key authorization: api_token
833
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
834
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
835
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
836
- end
837
-
838
- api_instance = Shortcut::DefaultApi.new
839
- epic_public_id = 789 # Integer | The unique ID of the Epic.
840
-
841
-
842
- begin
843
- #Get Epic
844
- result = api_instance.get_epic(epic_public_id)
845
- p result
846
- rescue Shortcut::ApiError => e
847
- puts "Exception when calling DefaultApi->get_epic: #{e}"
848
- end
849
- # Setup authorization
850
- Shortcut.configure do |config|
851
- # Configure API key authorization: api_token
852
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
853
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
854
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
855
- end
856
-
857
- api_instance = Shortcut::DefaultApi.new
858
- epic_public_id = 789 # Integer | The ID of the associated Epic.
859
- comment_public_id = 789 # Integer | The ID of the Comment.
860
-
861
-
862
- begin
863
- #Get Epic Comment
864
- result = api_instance.get_epic_comment(epic_public_id, comment_public_id)
865
- p result
866
- rescue Shortcut::ApiError => e
867
- puts "Exception when calling DefaultApi->get_epic_comment: #{e}"
868
- end
869
- # Setup authorization
870
- Shortcut.configure do |config|
871
- # Configure API key authorization: api_token
872
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
873
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
874
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
875
- end
876
-
877
- api_instance = Shortcut::DefaultApi.new
878
-
879
- begin
880
- #Get Epic Workflow
881
- result = api_instance.get_epic_workflow
882
- p result
883
- rescue Shortcut::ApiError => e
884
- puts "Exception when calling DefaultApi->get_epic_workflow: #{e}"
885
- end
886
- # Setup authorization
887
- Shortcut.configure do |config|
888
- # Configure API key authorization: api_token
889
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
890
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
891
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
892
- end
893
-
894
- api_instance = Shortcut::DefaultApi.new
895
- body = Shortcut::GetExternalLinkStoriesParams.new # GetExternalLinkStoriesParams |
896
-
897
-
898
- begin
899
- #Get External Link Stories
900
- result = api_instance.get_external_link_stories(body)
901
- p result
902
- rescue Shortcut::ApiError => e
903
- puts "Exception when calling DefaultApi->get_external_link_stories: #{e}"
904
- end
905
- # Setup authorization
906
- Shortcut.configure do |config|
907
- # Configure API key authorization: api_token
908
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
909
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
910
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
911
- end
912
-
913
- api_instance = Shortcut::DefaultApi.new
914
- file_public_id = 789 # Integer | The File’s unique ID.
915
-
916
-
917
- begin
918
- #Get File
919
- result = api_instance.get_file(file_public_id)
920
- p result
921
- rescue Shortcut::ApiError => e
922
- puts "Exception when calling DefaultApi->get_file: #{e}"
923
- end
924
- # Setup authorization
925
- Shortcut.configure do |config|
926
- # Configure API key authorization: api_token
927
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
928
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
929
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
930
- end
931
-
932
- api_instance = Shortcut::DefaultApi.new
933
- group_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the Group.
934
-
935
-
936
- begin
937
- #Get Group
938
- result = api_instance.get_group(group_public_id)
939
- p result
940
- rescue Shortcut::ApiError => e
941
- puts "Exception when calling DefaultApi->get_group: #{e}"
942
- end
943
- # Setup authorization
944
- Shortcut.configure do |config|
945
- # Configure API key authorization: api_token
946
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
947
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
948
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
949
- end
950
-
951
- api_instance = Shortcut::DefaultApi.new
952
- iteration_public_id = 789 # Integer | The unique ID of the Iteration.
953
-
954
-
955
- begin
956
- #Get Iteration
957
- result = api_instance.get_iteration(iteration_public_id)
958
- p result
959
- rescue Shortcut::ApiError => e
960
- puts "Exception when calling DefaultApi->get_iteration: #{e}"
961
- end
962
- # Setup authorization
963
- Shortcut.configure do |config|
964
- # Configure API key authorization: api_token
965
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
966
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
967
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
968
- end
969
-
970
- api_instance = Shortcut::DefaultApi.new
971
- label_public_id = 789 # Integer | The unique ID of the Label.
972
-
973
-
974
- begin
975
- #Get Label
976
- result = api_instance.get_label(label_public_id)
977
- p result
978
- rescue Shortcut::ApiError => e
979
- puts "Exception when calling DefaultApi->get_label: #{e}"
980
- end
981
- # Setup authorization
982
- Shortcut.configure do |config|
983
- # Configure API key authorization: api_token
984
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
985
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
986
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
987
- end
988
-
989
- api_instance = Shortcut::DefaultApi.new
990
- linked_file_public_id = 789 # Integer | The unique identifier of the linked file.
991
-
992
-
993
- begin
994
- #Get Linked File
995
- result = api_instance.get_linked_file(linked_file_public_id)
996
- p result
997
- rescue Shortcut::ApiError => e
998
- puts "Exception when calling DefaultApi->get_linked_file: #{e}"
999
- end
1000
- # Setup authorization
1001
- Shortcut.configure do |config|
1002
- # Configure API key authorization: api_token
1003
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1004
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1005
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1006
- end
1007
-
1008
- api_instance = Shortcut::DefaultApi.new
1009
- body = Shortcut::GetMember.new # GetMember |
1010
- member_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The Member's unique ID.
1011
-
1012
-
1013
- begin
1014
- #Get Member
1015
- result = api_instance.get_member(body, member_public_id)
1016
- p result
1017
- rescue Shortcut::ApiError => e
1018
- puts "Exception when calling DefaultApi->get_member: #{e}"
1019
- end
1020
- # Setup authorization
1021
- Shortcut.configure do |config|
1022
- # Configure API key authorization: api_token
1023
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1024
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1025
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1026
- end
1027
-
1028
- api_instance = Shortcut::DefaultApi.new
1029
- milestone_public_id = 789 # Integer | The ID of the Milestone.
1030
-
1031
-
1032
- begin
1033
- #Get Milestone
1034
- result = api_instance.get_milestone(milestone_public_id)
1035
- p result
1036
- rescue Shortcut::ApiError => e
1037
- puts "Exception when calling DefaultApi->get_milestone: #{e}"
1038
- end
1039
- # Setup authorization
1040
- Shortcut.configure do |config|
1041
- # Configure API key authorization: api_token
1042
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1043
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1044
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1045
- end
1046
-
1047
- api_instance = Shortcut::DefaultApi.new
1048
- project_public_id = 789 # Integer | The unique ID of the Project.
1049
-
1050
-
1051
- begin
1052
- #Get Project
1053
- result = api_instance.get_project(project_public_id)
1054
- p result
1055
- rescue Shortcut::ApiError => e
1056
- puts "Exception when calling DefaultApi->get_project: #{e}"
1057
- end
1058
- # Setup authorization
1059
- Shortcut.configure do |config|
1060
- # Configure API key authorization: api_token
1061
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1062
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1063
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1064
- end
1065
-
1066
- api_instance = Shortcut::DefaultApi.new
1067
- repo_public_id = 789 # Integer | The unique ID of the Repository.
1068
-
1069
-
1070
- begin
1071
- #Get Repository
1072
- result = api_instance.get_repository(repo_public_id)
1073
- p result
1074
- rescue Shortcut::ApiError => e
1075
- puts "Exception when calling DefaultApi->get_repository: #{e}"
1076
- end
1077
- # Setup authorization
1078
- Shortcut.configure do |config|
1079
- # Configure API key authorization: api_token
1080
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1081
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1082
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1083
- end
1084
-
1085
- api_instance = Shortcut::DefaultApi.new
1086
- story_public_id = 789 # Integer | The ID of the Story.
1087
-
1088
-
1089
- begin
1090
- #Get Story
1091
- result = api_instance.get_story(story_public_id)
1092
- p result
1093
- rescue Shortcut::ApiError => e
1094
- puts "Exception when calling DefaultApi->get_story: #{e}"
1095
- end
1096
- # Setup authorization
1097
- Shortcut.configure do |config|
1098
- # Configure API key authorization: api_token
1099
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1100
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1101
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1102
- end
1103
-
1104
- api_instance = Shortcut::DefaultApi.new
1105
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
1106
- comment_public_id = 789 # Integer | The ID of the Comment.
1107
-
1108
-
1109
- begin
1110
- #Get Story Comment
1111
- result = api_instance.get_story_comment(story_public_id, comment_public_id)
1112
- p result
1113
- rescue Shortcut::ApiError => e
1114
- puts "Exception when calling DefaultApi->get_story_comment: #{e}"
1115
- end
1116
- # Setup authorization
1117
- Shortcut.configure do |config|
1118
- # Configure API key authorization: api_token
1119
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1120
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1121
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1122
- end
1123
-
1124
- api_instance = Shortcut::DefaultApi.new
1125
- story_link_public_id = 789 # Integer | The unique ID of the Story Link.
1126
-
1127
-
1128
- begin
1129
- #Get Story Link
1130
- result = api_instance.get_story_link(story_link_public_id)
1131
- p result
1132
- rescue Shortcut::ApiError => e
1133
- puts "Exception when calling DefaultApi->get_story_link: #{e}"
1134
- end
1135
- # Setup authorization
1136
- Shortcut.configure do |config|
1137
- # Configure API key authorization: api_token
1138
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1139
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1140
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1141
- end
1142
-
1143
- api_instance = Shortcut::DefaultApi.new
1144
- story_public_id = 789 # Integer | The unique ID of the Story this Task is associated with.
1145
- task_public_id = 789 # Integer | The unique ID of the Task.
1146
-
1147
-
1148
- begin
1149
- #Get Task
1150
- result = api_instance.get_task(story_public_id, task_public_id)
1151
- p result
1152
- rescue Shortcut::ApiError => e
1153
- puts "Exception when calling DefaultApi->get_task: #{e}"
1154
- end
1155
- # Setup authorization
1156
- Shortcut.configure do |config|
1157
- # Configure API key authorization: api_token
1158
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1159
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1160
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1161
- end
1162
-
1163
- api_instance = Shortcut::DefaultApi.new
1164
- workflow_public_id = 789 # Integer | The ID of the Workflow.
1165
-
1166
-
1167
- begin
1168
- #Get Workflow
1169
- result = api_instance.get_workflow(workflow_public_id)
1170
- p result
1171
- rescue Shortcut::ApiError => e
1172
- puts "Exception when calling DefaultApi->get_workflow: #{e}"
1173
- end
1174
- # Setup authorization
1175
- Shortcut.configure do |config|
1176
- # Configure API key authorization: api_token
1177
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1178
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1179
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1180
- end
1181
-
1182
- api_instance = Shortcut::DefaultApi.new
1183
-
1184
- begin
1185
- #List Categories
1186
- result = api_instance.list_categories
1187
- p result
1188
- rescue Shortcut::ApiError => e
1189
- puts "Exception when calling DefaultApi->list_categories: #{e}"
1190
- end
1191
- # Setup authorization
1192
- Shortcut.configure do |config|
1193
- # Configure API key authorization: api_token
1194
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1195
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1196
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1197
- end
1198
-
1199
- api_instance = Shortcut::DefaultApi.new
1200
- category_public_id = 789 # Integer | The unique ID of the Category.
1201
-
1202
-
1203
- begin
1204
- #List Category Milestones
1205
- result = api_instance.list_category_milestones(category_public_id)
1206
- p result
1207
- rescue Shortcut::ApiError => e
1208
- puts "Exception when calling DefaultApi->list_category_milestones: #{e}"
1209
- end
1210
- # Setup authorization
1211
- Shortcut.configure do |config|
1212
- # Configure API key authorization: api_token
1213
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1214
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1215
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1216
- end
1217
-
1218
- api_instance = Shortcut::DefaultApi.new
1219
-
1220
- begin
1221
- #List Entity Templates
1222
- result = api_instance.list_entity_templates
1223
- p result
1224
- rescue Shortcut::ApiError => e
1225
- puts "Exception when calling DefaultApi->list_entity_templates: #{e}"
1226
- end
1227
- # Setup authorization
1228
- Shortcut.configure do |config|
1229
- # Configure API key authorization: api_token
1230
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1231
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1232
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1233
- end
1234
-
1235
- api_instance = Shortcut::DefaultApi.new
1236
- epic_public_id = 789 # Integer | The unique ID of the Epic.
1237
-
1238
-
1239
- begin
1240
- #List Epic Comments
1241
- result = api_instance.list_epic_comments(epic_public_id)
1242
- p result
1243
- rescue Shortcut::ApiError => e
1244
- puts "Exception when calling DefaultApi->list_epic_comments: #{e}"
1245
- end
1246
- # Setup authorization
1247
- Shortcut.configure do |config|
1248
- # Configure API key authorization: api_token
1249
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1250
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1251
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1252
- end
1253
-
1254
- api_instance = Shortcut::DefaultApi.new
1255
- body = Shortcut::GetEpicStories.new # GetEpicStories |
1256
- epic_public_id = 789 # Integer | The unique ID of the Epic.
1257
-
1258
-
1259
- begin
1260
- #List Epic Stories
1261
- result = api_instance.list_epic_stories(body, epic_public_id)
1262
- p result
1263
- rescue Shortcut::ApiError => e
1264
- puts "Exception when calling DefaultApi->list_epic_stories: #{e}"
1265
- end
1266
- # Setup authorization
1267
- Shortcut.configure do |config|
1268
- # Configure API key authorization: api_token
1269
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1270
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1271
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1272
- end
1273
-
1274
- api_instance = Shortcut::DefaultApi.new
1275
- body = Shortcut::ListEpics.new # ListEpics |
1276
-
1277
-
1278
- begin
1279
- #List Epics
1280
- result = api_instance.list_epics(body)
1281
- p result
1282
- rescue Shortcut::ApiError => e
1283
- puts "Exception when calling DefaultApi->list_epics: #{e}"
1284
- end
1285
- # Setup authorization
1286
- Shortcut.configure do |config|
1287
- # Configure API key authorization: api_token
1288
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1289
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1290
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1291
- end
1292
-
1293
- api_instance = Shortcut::DefaultApi.new
1294
-
1295
- begin
1296
- #List Files
1297
- result = api_instance.list_files
1298
- p result
1299
- rescue Shortcut::ApiError => e
1300
- puts "Exception when calling DefaultApi->list_files: #{e}"
1301
- end
1302
- # Setup authorization
1303
- Shortcut.configure do |config|
1304
- # Configure API key authorization: api_token
1305
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1306
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1307
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1308
- end
1309
-
1310
- api_instance = Shortcut::DefaultApi.new
1311
- body = Shortcut::ListGroupStories.new # ListGroupStories |
1312
- group_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the Group.
1313
-
1314
-
1315
- begin
1316
- #List Group Stories
1317
- result = api_instance.list_group_stories(body, group_public_id)
1318
- p result
1319
- rescue Shortcut::ApiError => e
1320
- puts "Exception when calling DefaultApi->list_group_stories: #{e}"
1321
- end
1322
- # Setup authorization
1323
- Shortcut.configure do |config|
1324
- # Configure API key authorization: api_token
1325
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1326
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1327
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1328
- end
1329
-
1330
- api_instance = Shortcut::DefaultApi.new
1331
-
1332
- begin
1333
- #List Groups
1334
- result = api_instance.list_groups
1335
- p result
1336
- rescue Shortcut::ApiError => e
1337
- puts "Exception when calling DefaultApi->list_groups: #{e}"
1338
- end
1339
- # Setup authorization
1340
- Shortcut.configure do |config|
1341
- # Configure API key authorization: api_token
1342
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1343
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1344
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1345
- end
1346
-
1347
- api_instance = Shortcut::DefaultApi.new
1348
- body = Shortcut::GetIterationStories.new # GetIterationStories |
1349
- iteration_public_id = 789 # Integer | The unique ID of the Iteration.
1350
-
1351
-
1352
- begin
1353
- #List Iteration Stories
1354
- result = api_instance.list_iteration_stories(body, iteration_public_id)
1355
- p result
1356
- rescue Shortcut::ApiError => e
1357
- puts "Exception when calling DefaultApi->list_iteration_stories: #{e}"
1358
- end
1359
- # Setup authorization
1360
- Shortcut.configure do |config|
1361
- # Configure API key authorization: api_token
1362
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1363
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1364
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1365
- end
1366
-
1367
- api_instance = Shortcut::DefaultApi.new
1368
-
1369
- begin
1370
- #List Iterations
1371
- result = api_instance.list_iterations
1372
- p result
1373
- rescue Shortcut::ApiError => e
1374
- puts "Exception when calling DefaultApi->list_iterations: #{e}"
1375
- end
1376
- # Setup authorization
1377
- Shortcut.configure do |config|
1378
- # Configure API key authorization: api_token
1379
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1380
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1381
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1382
- end
1383
-
1384
- api_instance = Shortcut::DefaultApi.new
1385
- label_public_id = 789 # Integer | The unique ID of the Label.
1386
-
1387
-
1388
- begin
1389
- #List Label Epics
1390
- result = api_instance.list_label_epics(label_public_id)
1391
- p result
1392
- rescue Shortcut::ApiError => e
1393
- puts "Exception when calling DefaultApi->list_label_epics: #{e}"
1394
- end
1395
- # Setup authorization
1396
- Shortcut.configure do |config|
1397
- # Configure API key authorization: api_token
1398
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1399
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1400
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1401
- end
1402
-
1403
- api_instance = Shortcut::DefaultApi.new
1404
- body = Shortcut::GetLabelStories.new # GetLabelStories |
1405
- label_public_id = 789 # Integer | The unique ID of the Label.
1406
-
1407
-
1408
- begin
1409
- #List Label Stories
1410
- result = api_instance.list_label_stories(body, label_public_id)
1411
- p result
1412
- rescue Shortcut::ApiError => e
1413
- puts "Exception when calling DefaultApi->list_label_stories: #{e}"
1414
- end
1415
- # Setup authorization
1416
- Shortcut.configure do |config|
1417
- # Configure API key authorization: api_token
1418
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1419
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1420
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1421
- end
1422
-
1423
- api_instance = Shortcut::DefaultApi.new
1424
- body = Shortcut::ListLabels.new # ListLabels |
1425
-
1426
-
1427
- begin
1428
- #List Labels
1429
- result = api_instance.list_labels(body)
1430
- p result
1431
- rescue Shortcut::ApiError => e
1432
- puts "Exception when calling DefaultApi->list_labels: #{e}"
1433
- end
1434
- # Setup authorization
1435
- Shortcut.configure do |config|
1436
- # Configure API key authorization: api_token
1437
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1438
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1439
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1440
- end
1441
-
1442
- api_instance = Shortcut::DefaultApi.new
1443
-
1444
- begin
1445
- #List Linked Files
1446
- result = api_instance.list_linked_files
1447
- p result
1448
- rescue Shortcut::ApiError => e
1449
- puts "Exception when calling DefaultApi->list_linked_files: #{e}"
1450
- end
1451
- # Setup authorization
1452
- Shortcut.configure do |config|
1453
- # Configure API key authorization: api_token
1454
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1455
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1456
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1457
- end
1458
-
1459
- api_instance = Shortcut::DefaultApi.new
1460
- body = Shortcut::ListMembers.new # ListMembers |
1461
-
1462
-
1463
- begin
1464
- #List Members
1465
- result = api_instance.list_members(body)
1466
- p result
1467
- rescue Shortcut::ApiError => e
1468
- puts "Exception when calling DefaultApi->list_members: #{e}"
1469
- end
1470
- # Setup authorization
1471
- Shortcut.configure do |config|
1472
- # Configure API key authorization: api_token
1473
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1474
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1475
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1476
- end
1477
-
1478
- api_instance = Shortcut::DefaultApi.new
1479
- milestone_public_id = 789 # Integer | The ID of the Milestone.
1480
-
1481
-
1482
- begin
1483
- #List Milestone Epics
1484
- result = api_instance.list_milestone_epics(milestone_public_id)
1485
- p result
1486
- rescue Shortcut::ApiError => e
1487
- puts "Exception when calling DefaultApi->list_milestone_epics: #{e}"
1488
- end
1489
- # Setup authorization
1490
- Shortcut.configure do |config|
1491
- # Configure API key authorization: api_token
1492
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1493
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1494
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1495
- end
1496
-
1497
- api_instance = Shortcut::DefaultApi.new
1498
-
1499
- begin
1500
- #List Milestones
1501
- result = api_instance.list_milestones
1502
- p result
1503
- rescue Shortcut::ApiError => e
1504
- puts "Exception when calling DefaultApi->list_milestones: #{e}"
1505
- end
1506
- # Setup authorization
1507
- Shortcut.configure do |config|
1508
- # Configure API key authorization: api_token
1509
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1510
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1511
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1512
- end
1513
-
1514
- api_instance = Shortcut::DefaultApi.new
1515
-
1516
- begin
1517
- #List Projects
1518
- result = api_instance.list_projects
1519
- p result
1520
- rescue Shortcut::ApiError => e
1521
- puts "Exception when calling DefaultApi->list_projects: #{e}"
1522
- end
1523
- # Setup authorization
1524
- Shortcut.configure do |config|
1525
- # Configure API key authorization: api_token
1526
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1527
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1528
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1529
- end
1530
-
1531
- api_instance = Shortcut::DefaultApi.new
1532
-
1533
- begin
1534
- #List Repositories
1535
- result = api_instance.list_repositories
1536
- p result
1537
- rescue Shortcut::ApiError => e
1538
- puts "Exception when calling DefaultApi->list_repositories: #{e}"
1539
- end
1540
- # Setup authorization
1541
- Shortcut.configure do |config|
1542
- # Configure API key authorization: api_token
1543
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1544
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1545
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1546
- end
1547
-
1548
- api_instance = Shortcut::DefaultApi.new
1549
- body = Shortcut::GetProjectStories.new # GetProjectStories |
1550
- project_public_id = 789 # Integer | The unique ID of the Project.
1551
-
1552
-
1553
- begin
1554
- #List Stories
1555
- result = api_instance.list_stories(body, project_public_id)
1556
- p result
1557
- rescue Shortcut::ApiError => e
1558
- puts "Exception when calling DefaultApi->list_stories: #{e}"
1559
- end
1560
- # Setup authorization
1561
- Shortcut.configure do |config|
1562
- # Configure API key authorization: api_token
1563
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1564
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1565
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1566
- end
1567
-
1568
- api_instance = Shortcut::DefaultApi.new
1569
-
1570
- begin
1571
- #List Workflows
1572
- result = api_instance.list_workflows
1573
- p result
1574
- rescue Shortcut::ApiError => e
1575
- puts "Exception when calling DefaultApi->list_workflows: #{e}"
1576
- end
1577
- # Setup authorization
1578
- Shortcut.configure do |config|
1579
- # Configure API key authorization: api_token
1580
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1581
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1582
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1583
- end
1584
-
1585
- api_instance = Shortcut::DefaultApi.new
1586
- body = Shortcut::Search.new # Search |
1587
-
1588
-
1589
- begin
1590
- #Search
1591
- result = api_instance.search(body)
1592
- p result
1593
- rescue Shortcut::ApiError => e
1594
- puts "Exception when calling DefaultApi->search: #{e}"
1595
- end
1596
- # Setup authorization
1597
- Shortcut.configure do |config|
1598
- # Configure API key authorization: api_token
1599
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1600
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1601
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1602
- end
1603
-
1604
- api_instance = Shortcut::DefaultApi.new
1605
- body = Shortcut::Search.new # Search |
1606
-
1607
-
1608
- begin
1609
- #Search Epics
1610
- result = api_instance.search_epics(body)
1611
- p result
1612
- rescue Shortcut::ApiError => e
1613
- puts "Exception when calling DefaultApi->search_epics: #{e}"
1614
- end
1615
- # Setup authorization
1616
- Shortcut.configure do |config|
1617
- # Configure API key authorization: api_token
1618
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1619
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1620
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1621
- end
1622
-
1623
- api_instance = Shortcut::DefaultApi.new
1624
- body = Shortcut::Search.new # Search |
1625
-
1626
-
1627
- begin
1628
- #Search Stories
1629
- result = api_instance.search_stories(body)
1630
- p result
1631
- rescue Shortcut::ApiError => e
1632
- puts "Exception when calling DefaultApi->search_stories: #{e}"
1633
- end
1634
- # Setup authorization
1635
- Shortcut.configure do |config|
1636
- # Configure API key authorization: api_token
1637
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1638
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1639
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1640
- end
1641
-
1642
- api_instance = Shortcut::DefaultApi.new
1643
- body = Shortcut::SearchStories.new # SearchStories |
1644
-
1645
-
1646
- begin
1647
- #Search Stories (Old)
1648
- result = api_instance.search_stories_old(body)
1649
- p result
1650
- rescue Shortcut::ApiError => e
1651
- puts "Exception when calling DefaultApi->search_stories_old: #{e}"
1652
- end
1653
- # Setup authorization
1654
- Shortcut.configure do |config|
1655
- # Configure API key authorization: api_token
1656
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1657
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1658
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1659
- end
1660
-
1661
- api_instance = Shortcut::DefaultApi.new
1662
- story_public_id = 789 # Integer | The ID of the Story.
1663
-
1664
-
1665
- begin
1666
- #Story History
1667
- result = api_instance.story_history(story_public_id)
1668
- p result
1669
- rescue Shortcut::ApiError => e
1670
- puts "Exception when calling DefaultApi->story_history: #{e}"
1671
- end
1672
- # Setup authorization
1673
- Shortcut.configure do |config|
1674
- # Configure API key authorization: api_token
1675
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1676
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1677
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1678
- end
1679
-
1680
- api_instance = Shortcut::DefaultApi.new
1681
- epic_public_id = 789 # Integer | The unique ID of the Epic.
1682
-
1683
-
1684
- begin
1685
- #Unlink Productboard from Epic
1686
- api_instance.unlink_productboard_from_epic(epic_public_id)
1687
- rescue Shortcut::ApiError => e
1688
- puts "Exception when calling DefaultApi->unlink_productboard_from_epic: #{e}"
1689
- end
1690
- # Setup authorization
1691
- Shortcut.configure do |config|
1692
- # Configure API key authorization: api_token
1693
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1694
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1695
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1696
- end
1697
-
1698
- api_instance = Shortcut::DefaultApi.new
1699
- body = Shortcut::UpdateCategory.new # UpdateCategory |
1700
- category_public_id = 789 # Integer | The unique ID of the Category you wish to update.
1701
-
1702
-
1703
- begin
1704
- #Update Category
1705
- result = api_instance.update_category(body, category_public_id)
1706
- p result
1707
- rescue Shortcut::ApiError => e
1708
- puts "Exception when calling DefaultApi->update_category: #{e}"
1709
- end
1710
- # Setup authorization
1711
- Shortcut.configure do |config|
1712
- # Configure API key authorization: api_token
1713
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1714
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1715
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1716
- end
1717
-
1718
- api_instance = Shortcut::DefaultApi.new
1719
- body = Shortcut::UpdateEntityTemplate.new # UpdateEntityTemplate | Request parameters for changing either a template's name or any of the attributes it is designed to pre-populate.
1720
- entity_template_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the template to be updated.
1721
-
1722
-
1723
- begin
1724
- #Update Entity Template
1725
- result = api_instance.update_entity_template(body, entity_template_public_id)
1726
- p result
1727
- rescue Shortcut::ApiError => e
1728
- puts "Exception when calling DefaultApi->update_entity_template: #{e}"
1729
- end
1730
- # Setup authorization
1731
- Shortcut.configure do |config|
1732
- # Configure API key authorization: api_token
1733
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1734
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1735
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1736
- end
1737
-
1738
- api_instance = Shortcut::DefaultApi.new
1739
- body = Shortcut::UpdateEpic.new # UpdateEpic |
1740
- epic_public_id = 789 # Integer | The unique ID of the Epic.
1741
-
1742
-
1743
- begin
1744
- #Update Epic
1745
- result = api_instance.update_epic(body, epic_public_id)
1746
- p result
1747
- rescue Shortcut::ApiError => e
1748
- puts "Exception when calling DefaultApi->update_epic: #{e}"
1749
- end
1750
- # Setup authorization
1751
- Shortcut.configure do |config|
1752
- # Configure API key authorization: api_token
1753
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1754
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1755
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1756
- end
1757
-
1758
- api_instance = Shortcut::DefaultApi.new
1759
- body = Shortcut::UpdateComment.new # UpdateComment |
1760
- epic_public_id = 789 # Integer | The ID of the associated Epic.
1761
- comment_public_id = 789 # Integer | The ID of the Comment.
1762
-
1763
-
1764
- begin
1765
- #Update Epic Comment
1766
- result = api_instance.update_epic_comment(body, epic_public_id, comment_public_id)
1767
- p result
1768
- rescue Shortcut::ApiError => e
1769
- puts "Exception when calling DefaultApi->update_epic_comment: #{e}"
1770
- end
1771
- # Setup authorization
1772
- Shortcut.configure do |config|
1773
- # Configure API key authorization: api_token
1774
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1775
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1776
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1777
- end
1778
-
1779
- api_instance = Shortcut::DefaultApi.new
1780
- body = Shortcut::UpdateFile.new # UpdateFile |
1781
- file_public_id = 789 # Integer | The unique ID assigned to the file in Shortcut.
1782
-
1783
-
1784
- begin
1785
- #Update File
1786
- result = api_instance.update_file(body, file_public_id)
1787
- p result
1788
- rescue Shortcut::ApiError => e
1789
- puts "Exception when calling DefaultApi->update_file: #{e}"
1790
- end
1791
- # Setup authorization
1792
- Shortcut.configure do |config|
1793
- # Configure API key authorization: api_token
1794
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1795
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1796
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1797
- end
1798
-
1799
- api_instance = Shortcut::DefaultApi.new
1800
- body = Shortcut::UpdateGroup.new # UpdateGroup |
1801
- group_public_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The unique ID of the Group.
1802
-
1803
-
1804
- begin
1805
- #Update Group
1806
- result = api_instance.update_group(body, group_public_id)
1807
- p result
1808
- rescue Shortcut::ApiError => e
1809
- puts "Exception when calling DefaultApi->update_group: #{e}"
1810
- end
1811
- # Setup authorization
1812
- Shortcut.configure do |config|
1813
- # Configure API key authorization: api_token
1814
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1815
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1816
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1817
- end
1818
-
1819
- api_instance = Shortcut::DefaultApi.new
1820
- body = Shortcut::UpdateIteration.new # UpdateIteration |
1821
- iteration_public_id = 789 # Integer | The unique ID of the Iteration.
1822
-
1823
-
1824
- begin
1825
- #Update Iteration
1826
- result = api_instance.update_iteration(body, iteration_public_id)
1827
- p result
1828
- rescue Shortcut::ApiError => e
1829
- puts "Exception when calling DefaultApi->update_iteration: #{e}"
1830
- end
1831
- # Setup authorization
1832
- Shortcut.configure do |config|
1833
- # Configure API key authorization: api_token
1834
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1835
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1836
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1837
- end
1838
-
1839
- api_instance = Shortcut::DefaultApi.new
1840
- body = Shortcut::UpdateLabel.new # UpdateLabel |
1841
- label_public_id = 789 # Integer | The unique ID of the Label you wish to update.
1842
-
1843
-
1844
- begin
1845
- #Update Label
1846
- result = api_instance.update_label(body, label_public_id)
1847
- p result
1848
- rescue Shortcut::ApiError => e
1849
- puts "Exception when calling DefaultApi->update_label: #{e}"
1850
- end
1851
- # Setup authorization
1852
- Shortcut.configure do |config|
1853
- # Configure API key authorization: api_token
1854
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1855
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1856
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1857
- end
1858
-
1859
- api_instance = Shortcut::DefaultApi.new
1860
- body = Shortcut::UpdateLinkedFile.new # UpdateLinkedFile |
1861
- linked_file_public_id = 789 # Integer | The unique identifier of the linked file.
1862
-
1863
-
1864
- begin
1865
- #Update Linked File
1866
- result = api_instance.update_linked_file(body, linked_file_public_id)
1867
- p result
1868
- rescue Shortcut::ApiError => e
1869
- puts "Exception when calling DefaultApi->update_linked_file: #{e}"
1870
- end
1871
- # Setup authorization
1872
- Shortcut.configure do |config|
1873
- # Configure API key authorization: api_token
1874
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1875
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1876
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1877
- end
1878
-
1879
- api_instance = Shortcut::DefaultApi.new
1880
- body = Shortcut::UpdateMilestone.new # UpdateMilestone |
1881
- milestone_public_id = 789 # Integer | The ID of the Milestone.
1882
-
1883
-
1884
- begin
1885
- #Update Milestone
1886
- result = api_instance.update_milestone(body, milestone_public_id)
1887
- p result
1888
- rescue Shortcut::ApiError => e
1889
- puts "Exception when calling DefaultApi->update_milestone: #{e}"
1890
- end
1891
- # Setup authorization
1892
- Shortcut.configure do |config|
1893
- # Configure API key authorization: api_token
1894
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1895
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1896
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1897
- end
29
+ (for development, run `gem install --dev ./shortcut_client_ruby-0.1.2.gem` to install the development dependencies)
1898
30
 
1899
- api_instance = Shortcut::DefaultApi.new
1900
- body = Shortcut::UpdateStories.new # UpdateStories |
1901
-
1902
-
1903
- begin
1904
- #Update Multiple Stories
1905
- result = api_instance.update_multiple_stories(body)
1906
- p result
1907
- rescue Shortcut::ApiError => e
1908
- puts "Exception when calling DefaultApi->update_multiple_stories: #{e}"
1909
- end
1910
- # Setup authorization
1911
- Shortcut.configure do |config|
1912
- # Configure API key authorization: api_token
1913
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1914
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1915
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1916
- end
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
1917
32
 
1918
- api_instance = Shortcut::DefaultApi.new
1919
- body = Shortcut::UpdateProject.new # UpdateProject |
1920
- project_public_id = 789 # Integer | The unique ID of the Project.
33
+ Finally add this to the Gemfile:
1921
34
 
35
+ gem 'shortcut_client_ruby', '~> 0.1.2'
1922
36
 
1923
- begin
1924
- #Update Project
1925
- result = api_instance.update_project(body, project_public_id)
1926
- p result
1927
- rescue Shortcut::ApiError => e
1928
- puts "Exception when calling DefaultApi->update_project: #{e}"
1929
- end
1930
- # Setup authorization
1931
- Shortcut.configure do |config|
1932
- # Configure API key authorization: api_token
1933
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1934
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1935
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1936
- end
37
+ ### Install from Git
1937
38
 
1938
- api_instance = Shortcut::DefaultApi.new
1939
- body = Shortcut::UpdateStory.new # UpdateStory |
1940
- story_public_id = 789 # Integer | The unique identifier of this story.
39
+ If the Ruby gem is hosted at a git repository: https://github.com/ngouy/shortcut_client_ruby, then add the following in the Gemfile:
1941
40
 
41
+ gem 'shortcut_client_ruby', :git => 'https://github.com/ngouy/shortcut_client_ruby.git'
1942
42
 
1943
- begin
1944
- #Update Story
1945
- result = api_instance.update_story(body, story_public_id)
1946
- p result
1947
- rescue Shortcut::ApiError => e
1948
- puts "Exception when calling DefaultApi->update_story: #{e}"
1949
- end
1950
- # Setup authorization
1951
- Shortcut.configure do |config|
1952
- # Configure API key authorization: api_token
1953
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1954
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1955
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1956
- end
43
+ ### Include the Ruby code directly
1957
44
 
1958
- api_instance = Shortcut::DefaultApi.new
1959
- body = Shortcut::UpdateStoryComment.new # UpdateStoryComment |
1960
- story_public_id = 789 # Integer | The ID of the Story that the Comment is in.
1961
- comment_public_id = 789 # Integer | The ID of the Comment
45
+ Include the Ruby code directly using `-I` as follows:
1962
46
 
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
1963
50
 
1964
- begin
1965
- #Update Story Comment
1966
- result = api_instance.update_story_comment(body, story_public_id, comment_public_id)
1967
- p result
1968
- rescue Shortcut::ApiError => e
1969
- puts "Exception when calling DefaultApi->update_story_comment: #{e}"
1970
- end
1971
- # Setup authorization
1972
- Shortcut.configure do |config|
1973
- # Configure API key authorization: api_token
1974
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
1975
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1976
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
1977
- end
51
+ ## Getting Started
1978
52
 
1979
- api_instance = Shortcut::DefaultApi.new
1980
- body = Shortcut::UpdateStoryLink.new # UpdateStoryLink |
1981
- story_link_public_id = 789 # Integer | The unique ID of the Story Link.
53
+ Please follow the [installation](#installation) procedure and then run the following code:
1982
54
 
55
+ ```ruby
56
+ # Load the gem
57
+ require 'shortcut_client_ruby'
1983
58
 
1984
- begin
1985
- #Update Story Link
1986
- result = api_instance.update_story_link(body, story_link_public_id)
1987
- p result
1988
- rescue Shortcut::ApiError => e
1989
- puts "Exception when calling DefaultApi->update_story_link: #{e}"
1990
- end
1991
59
  # Setup authorization
1992
60
  Shortcut.configure do |config|
1993
61
  # Configure API key authorization: api_token
1994
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
62
+ config.api_key['api_token'] = 'YOUR API KEY'
1995
63
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1996
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
64
+ # config.api_key_prefix['api_token'] = 'Bearer'
1997
65
  end
1998
66
 
1999
67
  api_instance = Shortcut::DefaultApi.new
2000
- body = Shortcut::UpdateTask.new # UpdateTask |
2001
- story_public_id = 789 # Integer | The unique identifier of the parent Story.
2002
- task_public_id = 789 # Integer | The unique identifier of the Task you wish to update.
2003
-
68
+ create_category = Shortcut::CreateCategory.new({name: 'name_example', type: 'milestone'}) # CreateCategory |
2004
69
 
2005
70
  begin
2006
- #Update Task
2007
- result = api_instance.update_task(body, story_public_id, task_public_id)
71
+ #Create Category
72
+ result = api_instance.create_category(create_category)
2008
73
  p result
2009
74
  rescue Shortcut::ApiError => e
2010
- puts "Exception when calling DefaultApi->update_task: #{e}"
2011
- end
2012
- # Setup authorization
2013
- Shortcut.configure do |config|
2014
- # Configure API key authorization: api_token
2015
- config.api_key['Shortcut-Token'] = 'YOUR API KEY'
2016
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2017
- #config.api_key_prefix['Shortcut-Token'] = 'Bearer'
75
+ puts "Exception when calling DefaultApi->create_category: #{e}"
2018
76
  end
2019
77
 
2020
- api_instance = Shortcut::DefaultApi.new
2021
- story_id = 789 # Integer |
2022
- file0 = 'file0_example' # String |
2023
- file1 = 'file1_example' # String |
2024
- file2 = 'file2_example' # String |
2025
- file3 = 'file3_example' # String |
2026
-
2027
-
2028
- begin
2029
- #Upload Files
2030
- result = api_instance.upload_files(story_id, file0, file1, file2, file3)
2031
- p result
2032
- rescue Shortcut::ApiError => e
2033
- puts "Exception when calling DefaultApi->upload_files: #{e}"
2034
- end
2035
78
  ```
2036
79
 
2037
80
  ## Documentation for API Endpoints
2038
81
 
2039
- All URIs are relative to *https://api.app.shortcut.com/*
82
+ All URIs are relative to *https://api.app.shortcut.com*
2040
83
 
2041
84
  Class | Method | HTTP request | Description
2042
85
  ------------ | ------------- | ------------- | -------------
@@ -2146,6 +189,7 @@ Class | Method | HTTP request | Description
2146
189
  *Shortcut::DefaultApi* | [**update_task**](docs/DefaultApi.md#update_task) | **PUT** /api/v3/stories/{story-public-id}/tasks/{task-public-id} | Update Task
2147
190
  *Shortcut::DefaultApi* | [**upload_files**](docs/DefaultApi.md#upload_files) | **POST** /api/v3/files | Upload Files
2148
191
 
192
+
2149
193
  ## Documentation for Models
2150
194
 
2151
195
  - [Shortcut::BasicWorkspaceInfo](docs/BasicWorkspaceInfo.md)
@@ -2287,15 +331,16 @@ Class | Method | HTTP request | Description
2287
331
  - [Shortcut::UpdateStoryLink](docs/UpdateStoryLink.md)
2288
332
  - [Shortcut::UpdateTask](docs/UpdateTask.md)
2289
333
  - [Shortcut::UploadedFile](docs/UploadedFile.md)
2290
- - [Shortcut::V3FilesBody](docs/V3FilesBody.md)
2291
334
  - [Shortcut::Workflow](docs/Workflow.md)
2292
335
  - [Shortcut::WorkflowState](docs/WorkflowState.md)
2293
336
 
337
+
2294
338
  ## Documentation for Authorization
2295
339
 
2296
340
 
2297
341
  ### api_token
2298
342
 
343
+
2299
344
  - **Type**: API key
2300
345
  - **API key parameter name**: Shortcut-Token
2301
346
  - **Location**: HTTP header