forked from barberj/release-ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
87 lines (69 loc) · 2.59 KB
/
apiary.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
FORMAT: 1A
HOST: https://www.therelease.ninja/api
# Release Ninja
Provide your product manager, internal stakeholders, and customers with real-time release notes from your Github based project.
By seamlessly integrating with Github, The Release Ninja is able to provide a format for "release notes" that are synced, edited,
and finally published.
# Group Projects
Project related resources of the **Projects API**
## Projects Collection [/projects.json]
### List All Projects [GET]
This endpoint will provide all projects visible to you.
+ Response 200 (application/json)
[
{
"id": 1,
"created_at": "2015-01-31T05:54:40.585Z",
"title": "Release Ninja",
"public_header_background": null,
"public_logo_url": null,
"public_css": null,
"slug": "meta",
"url": "https://meta.therelease.ninja/",
"robot_token": null,
"report_url": "https://www.therelease.ninja/plain/3",
"auto_notify": true,
"repositories": [
{
"id": 1,
"full_name": "SalesLoft/release-ninja",
"url": "https://github.com/SalesLoft/release-ninja"
}
]
}
]
### Create a New Project [POST]
You may create a new project using this action. It takes a JSON
object containing a title and a collection a repo names which
will be associated and monitored for this project.
+ Request (application/json)
{
"title": "Super Cool Project",
"repos": [
"sb8244/release-ninja"
]
}
+ Response 201 (application/json)
+ Headers
Location: /projects/super-cool-project
+ Body
{
"id": 1,
"created_at": "2015-01-31T05:54:40.585Z",
"title": "Super Cool Project",
"public_header_background": null,
"public_logo_url": null,
"public_css": null,
"slug": "meta",
"url": "https://super-cool-project.therelease.ninja/",
"robot_token": null,
"report_url": "https://www.therelease.ninja/plain/1",
"auto_notify": true,
"repositories": [
{
"id": 1,
"full_name": "sb8244/release-ninja",
"url": "https://github.com/sb8244/release-ninja"
}
]
}