-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests
129 lines (106 loc) · 2.99 KB
/
requests
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# -*- restclient -*-
# RUN THIS IN EMACS IN restclient-mode
:bundle-id = com.tramline.ueno
:key-id = KEY_ID
:issuer-id = ISSUER_ID
:port = 4000
:my-headers = <<
Authorization: Bearer :auth-token
Content-Type: application/json
X-AppStoreConnect-Key-Id: :key-id
X-AppStoreConnect-Issuer-Id: :issuer-id
X-AppStoreConnect-Token: :store-token
#
GET http://127.0.0.1::port/ping
#
GET http://127.0.0.1::port/internal/keys?key_id=:key-id&issuer_id=:issuer-id
-> jq-set-var :store-token .store_token
-> jq-set-var :auth-token .auth_token
# Get an app metadata
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/
:my-headers
#
# Get an app live info
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/current_status
:my-headers
#
# Get beta groups for an app
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/groups
:my-headers
#
:build-number = 9018
# Get build for an app
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/builds/:build-number
:my-headers
#
# Update the build notes
PATCH http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/builds/:build-number
:my-headers
{
"notes": "ring a ring o roses"
}
#
# Get latest build for an app
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/builds/latest
:my-headers
#
# This is Opinion's ID
:group-id = 3bc1ca3e-1d4f-4478-8f38-2dcae4dcbb69
# Add build to group
PATCH http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/groups/:group-id/add_build
:my-headers
{
"build_number": :build-number
}
#
# Prepare a release for submission
POST http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/release/prepare
:my-headers
{
"build_number": :build-number,
"version": "1.6.2",
"is_phased_release": true,
"metadata": { "promotional_text": "this is the app store version promo text",
"whats_new": "something new"}
}
#
:version = "1.2.0"
# Submit a release
PATCH http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/release/submit
:my-headers
{
"build_number": :build-number,
"version": :version
}
#
# Find a release that can be distributed
GET http://127.0.0.1::port/apple/connect/v1/apps/:bundle-id/release?build_number=:build-number
:my-headers
#
# Start a release
PATCH http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/start
:my-headers
{
"build_number": :build-number
}
#
#
GET http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/live
:my-headers
#
# Pause phased rollout for the live release
PATCH http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/live/rollout/pause
:my-headers
#
# Resume phased rollout for the live release
PATCH http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/live/rollout/resume
:my-headers
#
# Complete phased rollout for the live release
PATCH http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/live/rollout/complete
:my-headers
#
# Halt rollout for the live release (remove it from app store)
PATCH http://127.0.0.1::port/apple/connect/v1/apps/com.tramline.ueno/release/live/rollout/halt
:my-headers
#