-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathset_image_caption.html
259 lines (239 loc) · 8.53 KB
/
set_image_caption.html
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html>
<head>
<title>Image API API</title>
<meta charset="utf-8">
<style>
body {
font-family: Helvetica,Arial,sans-serif;
font-size: 13px;
font-weight: normal;
line-height: 18px;
color: #404040;
}
.container {
width: 940px;
margin-left: auto;
margin-right: auto;
zoom: 1;
}
pre {
background-color: #f5f5f5;
display: block;
padding: 8.5px;
margin: 0 0 18px;
line-height: 18px;
font-size: 12px;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.15);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
td.required .name:after {
float: right;
content: "required";
font-weight: normal;
color: #F08080;
}
a{
color: #0069d6;
text-decoration: none;
line-height: inherit;
font-weight: inherit;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #404040;
}
h1 {
margin-bottom: 18px;
font-size: 30px;
line-height: 36px;
}
h2 {
font-size: 24px;
line-height: 36px;
}
h3{
font-size: 18px;
line-height: 36px;
}
h4 {
font-size: 16px;
line-height: 36px;
}
table{
width: 100%;
margin-bottom: 18px;
padding: 0;
border-collapse: separate;
font-size: 13px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
border-spacing: 0;
border: 1px solid #ddd;
}
table th {
padding-top: 9px;
font-weight: bold;
vertical-align: middle;
border-bottom: 1px solid #ddd;
}
table th+th, table td+td {
border-left: 1px solid #ddd;
}
table th, table td {
padding: 10px 10px 9px;
line-height: 18px;
text-align: left;
}
</style>
</head>
<body>
<div class="container">
<h1>Image API API</h1>
<div class="article">
<h2>Set image caption</h2>
<h3>PUT /api/v1/images/:id</h3>
<h3>Parameters</h3>
<table class="parameters table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="name">title</span>
</td>
<td>
<span class="description">Image caption - title</span>
</td>
</tr>
<tr>
<td>
<span class="name">description</span>
</td>
<td>
<span class="description">Image caption - description</span>
</td>
</tr>
</tbody>
</table>
<h3>Request</h3>
<h4>Headers</h4>
<pre class="request headers">Authorization: Token token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTQ3NTk1MzIsImlhdCI6MTU1NDc0NTEzMiwidXNlcl9pZCI6ImRmNGNiNThmLWI4YTgtNDA4OC1iMWE1LTdkMWViYTI4ZWE4NSIsImFiaWxpdGllcyI6eyIwMDEwMDAwMDEyM0JCMTMyIjp7IkFjY2VzcyI6eyJpbWFnZV9jYXB0aW9uIjp0cnVlfX19fQ.JPkSb4c-PcPy42asQ0QAaBObV07-z06tDcbh9cpEYXs"
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: </pre>
<h4>Route</h4>
<pre class="request route highlight">PUT /api/v1/images/daebdfca-4ffd-4569-b620-655c99d7e165</pre>
<h4>Body</h4>
<pre class="request body">title=A+title%21&description=A+description...</pre>
<h3>Response</h3>
<h4>Headers</h4>
<pre class="response headers">Cache-Control: no-cache, no-store
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Type: application/json; charset=utf-8
X-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTQ3NTk1MzIsImlhdCI6MTU1NDc0NTEzMiwidXNlcl9pZCI6ImRmNGNiNThmLWI4YTgtNDA4OC1iMWE1LTdkMWViYTI4ZWE4NSIsImFiaWxpdGllcyI6eyIwMDEwMDAwMDEyM0JCMTMyIjp7IkFjY2VzcyI6eyJpbWFnZV9jYXB0aW9uIjp0cnVlfX19fQ.JPkSb4c-PcPy42asQ0QAaBObV07-z06tDcbh9cpEYXs
Vary: Accept-Encoding
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
X-Request-Id: 7a9623bc-72cd-40aa-b86f-08500c6fa3df
X-Runtime: 0.017666
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Length: 2920</pre>
<h4>Status</h4>
<pre class="response status">200 OK</pre>
<h4>Body</h4>
<pre class="response body">{
"id": "daebdfca-4ffd-4569-b620-655c99d7e165",
"public_id": "daebdfca-4ffd-4569-b620-655c99d7e165",
"infos": {
"bytes": 3604,
"created_at": "2015-09-25T13:32:55Z",
"etag": "5a98d4d3e5d39024abf237be55e99b15",
"format": "png",
"height": 48,
"resource_type": "image",
"tags": [
"00100000123BB132"
],
"type": "authenticated",
"width": 48,
"original_filename": "Super Image",
"location": {
"accuracy": 36,
"latitude": 48.861934399999996,
"longitude": 2.348967
}
},
"exifs": {
},
"gps": [
48.861934399999996,
2.348967
],
"gps_ip": null,
"gps_exifs": null,
"gps_html": [
48.861934399999996,
2.348967
],
"created_at": "2019-04-08T19:38:52.870+02:00",
"updated_at": "2019-04-08T19:38:52.884+02:00",
"taken_at": null,
"width": 48,
"height": 48,
"rotation": 0,
"crop_x": 0.0,
"crop_y": 0.0,
"crop_w": 0.0,
"crop_h": 0.0,
"metadatas": {
},
"original_url": "https://res.cloudinary.com/sadaasdasd/image/authenticated/s--ZU3chIEZ--/fl_attachment/v123123/f15a07774f78.jpg",
"original_width": 48,
"original_height": 48,
"external_urls": {
"fill100": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--B6m4OfAJ--/c_fit,w_300/v123123/f15a07774f78.jpg",
"fit2000": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--V4DhlHCh--/c_fit,h_2000,w_2000/v123123/f15a07774f78.jpg",
"mini": "https://sharinpix-proxy-dev.herokuapp.com/super-image.png?s=f81b9f6&url=localhost/images/daebdfca-4ffd-4569-b620-655c99d7e165/thumbnails/mini-95243bd2c67.jpg",
"large": "https://sharinpix-proxy-dev.herokuapp.com/super-image.png?s=a91d611&url=localhost/images/daebdfca-4ffd-4569-b620-655c99d7e165/thumbnails/thumbnail-38890b83a86.jpg",
"full": "https://sharinpix-proxy-dev.herokuapp.com/super-image.png?s=05f04c7&url=localhost/images/daebdfca-4ffd-4569-b620-655c99d7e165/thumbnails/full-33912595625.jpg"
},
"filename": "Super Image",
"format": "png",
"title": "A title!",
"description": "A description...",
"page": 1,
"group_id": null,
"color": "#7D7D7D",
"size": 3604,
"processed": false,
"processing_error": null,
"album_id": "00100000123BB132",
"thumbnails": {
"original": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--2fUZjuFL--/fl_attachment/dpr_auto,q_auto,f_auto/v123123/f15a07774f78.jpg",
"full_no_sharinpix": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--JZHY0cSm--/c_fit,h_1920,w_1920/fl_attachment/dpr_auto,q_auto,f_auto/v123123/f15a07774f78.jpg",
"full": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--JZHY0cSm--/c_fit,h_1920,w_1920/fl_attachment/dpr_auto,q_auto,f_auto/v123123/f15a07774f78.jpg",
"large": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--l3fAtwWt--/c_fit,h_1920,w_1920/c_fill,h_200,w_200/fl_attachment/dpr_auto,q_auto,f_auto/v123123/f15a07774f78.jpg",
"mini": "/assets/blank.jpg#https://res.cloudinary.com/sadaasdasd/image/authenticated/s--JaiYzR5W--/c_fit,h_1920,w_1920/c_fill,h_100,w_100/fl_attachment/dpr_auto,q_auto,f_auto/v123123/f15a07774f78.jpg"
}
}</pre>
</div>
</div>
</body>
</html>