heroku_api_stub 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/data/doc.json +126 -18
- data/spec/heroku_api_stub/generator_spec.rb +1 -0
- metadata +2 -2
data/data/doc.json
CHANGED
@@ -25,6 +25,7 @@
|
|
25
25
|
{ "Name": "message", "Type": "string", "Description": "end user message of error raised ", "Example": "<code>\"Your account reached the API limit. Please wait a few minutes before making new requests\"</code>" }
|
26
26
|
],
|
27
27
|
"Error Response": "```\nHTTP/1.1 429 Too Many Requests\n```\n```javascript\n{\n \"id\": \"rate_limit\",\n \"message\": \"Your account reached the API rate limit\\nPlease wait a few minutes before making new requests\"\n}\n```",
|
28
|
+
"Legacy API": "Those utilizing the legacy, v2 API should instead consult [legacy-api-docs.heroku.com](https://legacy-api-docs.heroku.com)",
|
28
29
|
"Methods": [
|
29
30
|
{ "Method": "DELETE", "Usage": "used for destroying existing objects" },
|
30
31
|
{ "Method": "GET", "Usage": "used for retrieving lists and individual objects" },
|
@@ -179,6 +180,7 @@
|
|
179
180
|
"Create": {
|
180
181
|
"attributes": {
|
181
182
|
"optional": [
|
183
|
+
"config",
|
182
184
|
"plan:name"
|
183
185
|
]
|
184
186
|
},
|
@@ -199,6 +201,7 @@
|
|
199
201
|
"Update": {
|
200
202
|
"attributes": {
|
201
203
|
"optional": [
|
204
|
+
"config",
|
202
205
|
"plan:name"
|
203
206
|
]
|
204
207
|
},
|
@@ -213,6 +216,12 @@
|
|
213
216
|
}
|
214
217
|
},
|
215
218
|
"attributes": {
|
219
|
+
"config": {
|
220
|
+
"description": "additional add-on service specific configuration",
|
221
|
+
"example": {},
|
222
|
+
"serialized": false,
|
223
|
+
"type": "object"
|
224
|
+
},
|
216
225
|
"created_at": {
|
217
226
|
"description": "when add-on was created",
|
218
227
|
"example": "2012-01-01T12:00:00-00:00",
|
@@ -307,9 +316,7 @@
|
|
307
316
|
"attributes": {
|
308
317
|
"optional": [
|
309
318
|
"maintenance",
|
310
|
-
"name"
|
311
|
-
"owner:email",
|
312
|
-
"owner:id"
|
319
|
+
"name"
|
313
320
|
]
|
314
321
|
},
|
315
322
|
"method": "PATCH",
|
@@ -323,6 +330,12 @@
|
|
323
330
|
}
|
324
331
|
},
|
325
332
|
"attributes": {
|
333
|
+
"archived_at": {
|
334
|
+
"description": "when app was archived",
|
335
|
+
"example": "2012-01-01T12:00:00-00:00",
|
336
|
+
"serialized": true,
|
337
|
+
"type": "datetime"
|
338
|
+
},
|
326
339
|
"buildpack_provided_description": {
|
327
340
|
"description": "description from buildpack of app",
|
328
341
|
"example": "Ruby/Rack",
|
@@ -435,17 +448,17 @@
|
|
435
448
|
]
|
436
449
|
},
|
437
450
|
"method": "POST",
|
438
|
-
"path": "/app-transfers",
|
451
|
+
"path": "/account/app-transfers",
|
439
452
|
"statuses": [201]
|
440
453
|
},
|
441
454
|
"List": {
|
442
455
|
"method": "GET",
|
443
|
-
"path": "/app-transfers",
|
456
|
+
"path": "/account/app-transfers",
|
444
457
|
"statuses": [200, 206]
|
445
458
|
},
|
446
459
|
"Info": {
|
447
460
|
"method": "GET",
|
448
|
-
"path": "/app-transfers/{transfer_id}",
|
461
|
+
"path": "/account/app-transfers/{transfer_id}",
|
449
462
|
"statuses": [200]
|
450
463
|
},
|
451
464
|
"Update": {
|
@@ -455,12 +468,12 @@
|
|
455
468
|
]
|
456
469
|
},
|
457
470
|
"method": "PATCH",
|
458
|
-
"path": "/app-transfers/{transfer_id}",
|
471
|
+
"path": "/account/app-transfers/{transfer_id}",
|
459
472
|
"statuses": [200]
|
460
473
|
},
|
461
474
|
"Delete": {
|
462
475
|
"method": "DELETE",
|
463
|
-
"path": "/app-transfers/{transfer_id}",
|
476
|
+
"path": "/account/app-transfers/{transfer_id}",
|
464
477
|
"statuses": [200]
|
465
478
|
}
|
466
479
|
},
|
@@ -1102,10 +1115,10 @@
|
|
1102
1115
|
},
|
1103
1116
|
"attributes": {
|
1104
1117
|
"access_token:expires_in": {
|
1105
|
-
"description": "
|
1106
|
-
"example": "
|
1118
|
+
"description": "seconds until OAuth access token expires",
|
1119
|
+
"example": "7200",
|
1107
1120
|
"serialized": true,
|
1108
|
-
"type": "
|
1121
|
+
"type": "number"
|
1109
1122
|
},
|
1110
1123
|
"access_token:id": {
|
1111
1124
|
"description": "unique identifier of this authorization's OAuth access token",
|
@@ -1174,10 +1187,10 @@
|
|
1174
1187
|
"type": "uuid"
|
1175
1188
|
},
|
1176
1189
|
"refresh_token:expires_in": {
|
1177
|
-
"description": "
|
1178
|
-
"example": "
|
1190
|
+
"description": "seconds until OAuth refresh token expires; may be `null` for a refresh token with indefinite lifetime",
|
1191
|
+
"example": "7200",
|
1179
1192
|
"serialized": true,
|
1180
|
-
"type": "
|
1193
|
+
"type": "number"
|
1181
1194
|
},
|
1182
1195
|
"refresh_token:id": {
|
1183
1196
|
"description": "unique identifier of this authorization's OAuth refresh token",
|
@@ -1193,9 +1206,9 @@
|
|
1193
1206
|
},
|
1194
1207
|
"scope": {
|
1195
1208
|
"description": "The scope of access OAuth authorization allows",
|
1196
|
-
"example": "global",
|
1209
|
+
"example": ["global"],
|
1197
1210
|
"serialized": true,
|
1198
|
-
"type": "string"
|
1211
|
+
"type": "array[string]"
|
1199
1212
|
},
|
1200
1213
|
"updated_at": {
|
1201
1214
|
"description": "when OAuth authorization was updated",
|
@@ -1362,7 +1375,7 @@
|
|
1362
1375
|
"type": "uuid"
|
1363
1376
|
},
|
1364
1377
|
"refresh_token:expires_in": {
|
1365
|
-
"description": "seconds until OAuth refresh token expires",
|
1378
|
+
"description": "seconds until OAuth refresh token expires; may be `null` for a refresh token with indefinite lifetime",
|
1366
1379
|
"example": 2592000,
|
1367
1380
|
"serialized": true,
|
1368
1381
|
"type": "number"
|
@@ -1518,7 +1531,7 @@
|
|
1518
1531
|
},
|
1519
1532
|
"Info": {
|
1520
1533
|
"method": "GET",
|
1521
|
-
"path": "/apps/{app_id_or_name}/releases/{
|
1534
|
+
"path": "/apps/{app_id_or_name}/releases/{release_id_or_version}",
|
1522
1535
|
"statuses": [200]
|
1523
1536
|
}
|
1524
1537
|
},
|
@@ -1567,6 +1580,101 @@
|
|
1567
1580
|
}
|
1568
1581
|
},
|
1569
1582
|
"description": "A release represents a combination of code, config vars and add-ons for an app on Heroku."
|
1583
|
+
},
|
1584
|
+
|
1585
|
+
"SSL Endpoint": {
|
1586
|
+
"actions": {
|
1587
|
+
"Create": {
|
1588
|
+
"attributes": {
|
1589
|
+
"required": [
|
1590
|
+
"certificate_chain",
|
1591
|
+
"private_key"
|
1592
|
+
]
|
1593
|
+
},
|
1594
|
+
"method": "POST",
|
1595
|
+
"path": "/apps/{app_id_or_name}/ssl-endpoints",
|
1596
|
+
"statuses": [201]
|
1597
|
+
},
|
1598
|
+
"List": {
|
1599
|
+
"method": "GET",
|
1600
|
+
"path": "/apps/{app_id_or_name}/ssl-endpoints",
|
1601
|
+
"statuses": [200, 206]
|
1602
|
+
},
|
1603
|
+
"Info": {
|
1604
|
+
"method": "GET",
|
1605
|
+
"path": "/apps/{app_id_or_name}/ssl-endpoints/{ssl_endpoint_id_or_name}",
|
1606
|
+
"statuses": [200]
|
1607
|
+
},
|
1608
|
+
"Update": {
|
1609
|
+
"attributes": {
|
1610
|
+
"optional": [
|
1611
|
+
"certificate_chain",
|
1612
|
+
"private_key",
|
1613
|
+
"rollback"
|
1614
|
+
]
|
1615
|
+
},
|
1616
|
+
"method": "PATCH",
|
1617
|
+
"path": "/apps/{app_id_or_name}/ssl-endpoints/{ssl_endpoint_id_or_name}",
|
1618
|
+
"statuses": [200],
|
1619
|
+
"description": "Updates an SSL Endpoint with a new certificate and private key or [rolls back an SSL Endpoint](https://devcenter.heroku.com/articles/ssl-endpoint#undo) when the `rollback` parameter is given a value of `true`."
|
1620
|
+
},
|
1621
|
+
"Delete": {
|
1622
|
+
"method": "DELETE",
|
1623
|
+
"path": "/apps/{app_id_or_name}/ssl-endpoints/{ssl_endpoint_id_or_name}",
|
1624
|
+
"statuses": [200]
|
1625
|
+
}
|
1626
|
+
},
|
1627
|
+
"attributes": {
|
1628
|
+
"certificate_chain": {
|
1629
|
+
"description": "raw contents of the public certificate chain (eg: .crt or .pem file)",
|
1630
|
+
"example": "-----BEGIN CERTIFICATE----- ...",
|
1631
|
+
"serialized": true,
|
1632
|
+
"type": "string"
|
1633
|
+
},
|
1634
|
+
"cname": {
|
1635
|
+
"description": "canonical name record, the address to point a domain at",
|
1636
|
+
"example": "example.herokussl.com",
|
1637
|
+
"serialized": true,
|
1638
|
+
"type": "string"
|
1639
|
+
},
|
1640
|
+
"created_at": {
|
1641
|
+
"description": "when endpoint was created",
|
1642
|
+
"example": "2012-01-01T12:00:00-00:00",
|
1643
|
+
"serialized": true,
|
1644
|
+
"type": "datetime"
|
1645
|
+
},
|
1646
|
+
"id": {
|
1647
|
+
"description": "unique identifier of this SSL endpoint",
|
1648
|
+
"example": "01234567-89ab-cdef-0123-456789abcdef",
|
1649
|
+
"serialized": true,
|
1650
|
+
"type": "uuid"
|
1651
|
+
},
|
1652
|
+
"name": {
|
1653
|
+
"description": "unique name for SSL endpoint",
|
1654
|
+
"example": "tokyo-1234",
|
1655
|
+
"serialized": true,
|
1656
|
+
"type": "string"
|
1657
|
+
},
|
1658
|
+
"private_key": {
|
1659
|
+
"description": "contents of the private key (eg .key file)",
|
1660
|
+
"example": "-----BEGIN RSA PRIVATE KEY----- ...",
|
1661
|
+
"serialized": false,
|
1662
|
+
"type": "string"
|
1663
|
+
},
|
1664
|
+
"rollback": {
|
1665
|
+
"description": "indicates that a rollback should be performed",
|
1666
|
+
"example": true,
|
1667
|
+
"serialized": false,
|
1668
|
+
"type": "boolean"
|
1669
|
+
},
|
1670
|
+
"updated_at": {
|
1671
|
+
"description": "when endpoint was updated",
|
1672
|
+
"example": "2012-01-01T12:00:00-00:00",
|
1673
|
+
"serialized": true,
|
1674
|
+
"type": "datetime"
|
1675
|
+
}
|
1676
|
+
},
|
1677
|
+
"description": "[SSL Endpoints](https://devcenter.heroku.com/articles/ssl-endpoint) are public addresses serving custom SSL certs for HTTPS traffic to Heroku apps. Note that an app must have the `ssl:endpoint` addon installed before it can provision an SSL Endpoint using these APIs."
|
1570
1678
|
}
|
1571
1679
|
|
1572
1680
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku_api_stub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|