Skip to content

Commit

Permalink
🔧 add Apis for Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mesh1nek0x0 committed Aug 12, 2019
1 parent c32241d commit d888ebf
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ support bellow APIs
- [Workspaces APIs](https://github.com/ZenHubIO/API#workspaces)
- [Epics APIs](https://github.com/ZenHubIO/API#epics)
- [Milestones APIs](https://github.com/ZenHubIO/API#milestones)
- :construction: [WIP]Dependencies APIs
- [Dependencies APIs](https://github.com/ZenHubIO/API#dependencies)

---

Expand Down
132 changes: 132 additions & 0 deletions zenhub.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,138 @@
}
}
]
},
{
"name": "Dependencies",
"item": [
{
"name": "Get Dependencies for a Repository",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "X-Authentication-Token",
"type": "text",
"value": "{{TOKEN}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://{{API_HOST}}/p1/repositories/:repo_id/dependencies",
"protocol": "https",
"host": [
"{{API_HOST}}"
],
"path": [
"p1",
"repositories",
":repo_id",
"dependencies"
],
"variable": [
{
"key": "repo_id",
"value": "{{REPO_ID}}"
}
]
}
},
"response": []
},
{
"name": "Create a Dependency",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "X-Authentication-Token",
"type": "text",
"value": "{{TOKEN}}"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://{{API_HOST}}/p1/repositories/:repo_id/dependencies",
"protocol": "https",
"host": [
"{{API_HOST}}"
],
"path": [
"p1",
"repositories",
":repo_id",
"dependencies"
],
"variable": [
{
"key": "repo_id",
"value": "{{REPO_ID}}"
}
]
}
},
"response": []
},
{
"name": "Remove a Dependency",
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "X-Authentication-Token",
"type": "text",
"value": "{{TOKEN}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"blocking\": {\n \"repo_id\": {{REPO_ID}},\n \"issue_number\": 6\n },\n \"blocked\": {\n \"repo_id\": {{REPO_ID}},\n \"issue_number\": 5\n }\n}"
},
"url": {
"raw": "https://{{API_HOST}}/p1/dependencies",
"protocol": "https",
"host": [
"{{API_HOST}}"
],
"path": [
"p1",
"dependencies"
]
}
},
"response": []
}
]
}
]
}

0 comments on commit d888ebf

Please sign in to comment.