Phu Quoc Dog
Search…
Artworks
This endpoint retrieves all artworks. The results returned are paginated.
HTTP Request: GET https://api.phuquoc.dog/artworks
Special Query Parameters
Parameter
Default
Description
Example
page
false
Return results pertaining to that page
page=3
fields
false
Allows you to return only attributes that you require
fields=artworkId,createdOn,name
limit
10
The number of results returned per page
limit=50
sort
desc
Sort artworks
sort=asc
Sample request gets two items:
1
curl GET https://api.phuquoc.dog/artworks?key=57819db00e710314f64fc1de6cd56ca7&limit=2
Copied!
Results:
1
{
2
"data": [
3
{
4
"id": 10,
5
"artistId": 2,
6
"name": "Awesome artwork 02",
7
"artistName": "Phuquoc Doge",
8
"artworkCategoryId": 1,
9
"image": {
10
"id": 28,
11
"key": "thumbnail/fb4cb59ea3b03a627a7ea5cc1492ce77.jpg",
12
"privacy": "public-read",
13
"url": "https://cdn.phuquocdoge.com/thumbnail/fb4cb59ea3b03a627a7ea5cc1492ce77.jpg",
14
"expires": 1626901761,
15
"originalFileName": "chameleon_sl5uty.jpg",
16
"fileSize": 118828,
17
"cdn": "https://cdn.phuquocdoge.com/thumbnail/fb4cb59ea3b03a627a7ea5cc1492ce77.jpg",
18
"isVideo": false
19
},
20
"imageBgcolor": null,
21
"previewImages": [],
22
"artworkNameUrl": "awesome-artwork-02",
23
"isPrivate": 0,
24
"status": 1,
25
"price": 2000,
26
"currency": "usd",
27
"video": null,
28
"videoLink": "https://media.niftygateway.com/video/upload/q_auto:good,w_500/v1615427766/A/WhIsBe/chameleon_sl5uty.mp4",
29
"currentVersionId": 10,
30
"draftVersionId": null,
31
"createdOn": "2021-07-11 14:13:57",
32
"modifiedOn": "2021-07-11 14:14:42",
33
"humanPrice": "$2,000.00",
34
"humanPriceJPY": "¥213,264",
35
"metadata": null,
36
"artistOrder": null,
37
"streamingUrl": null,
38
"numberOfEditions": "Open",
39
"videoThumbnail": null,
40
"users": {
41
"id": 2,
42
"roleId": 5,
43
"username": "phuquocdog",
44
"email": "[email protected]",
45
"title": null,
46
"firstname": "PQD",
47
"lastname": null,
48
"image": {
49
"id": 9,
50
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
51
"privacy": "public-read",
52
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
53
"expires": 1626639683,
54
"originalFileName": "phuquocoge.png",
55
"fileSize": 10553,
56
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
57
"isVideo": false
58
},
59
"cover": null,
60
"country": null,
61
"zone": null,
62
"address": null,
63
"zipcode": null,
64
"profile": null,
65
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
66
"url": null,
67
"amount": null,
68
"deposited": null,
69
"lastLogin": null,
70
"active": 1,
71
"language": null,
72
"specialRoles": 0,
73
"creationDate": "2021-06-30 08:00:18",
74
"modifiedDate": null,
75
"activeDate": "2021-06-30 08:00:18",
76
"artistNameUrl": null,
77
"organizational": 0,
78
"emailNotification": 1,
79
"deviceRegistered": 0
80
},
81
"artist": {
82
"id": 2,
83
"roleId": 5,
84
"username": "phuquocdog",
85
"email": "[email protected]",
86
"title": null,
87
"firstname": "PQD",
88
"lastname": null,
89
"image": {
90
"id": 9,
91
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
92
"privacy": "public-read",
93
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
94
"expires": 1626639683,
95
"originalFileName": "phuquocoge.png",
96
"fileSize": 10553,
97
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
98
"isVideo": false
99
},
100
"cover": null,
101
"country": null,
102
"zone": null,
103
"address": null,
104
"zipcode": null,
105
"profile": null,
106
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
107
"url": null,
108
"amount": null,
109
"deposited": null,
110
"lastLogin": null,
111
"active": 1,
112
"language": null,
113
"specialRoles": 0,
114
"creationDate": "2021-06-30 08:00:18",
115
"modifiedDate": null,
116
"activeDate": "2021-06-30 08:00:18",
117
"artistNameUrl": null,
118
"organizational": 0,
119
"emailNotification": 1,
120
"deviceRegistered": 0
121
}
122
},
123
{
124
"id": 12,
125
"artistId": 2,
126
"name": "Geo galaxy",
127
"artistName": "Phuquoc Doge",
128
"artworkCategoryId": 2,
129
"image": {
130
"id": 30,
131
"key": "thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
132
"privacy": "public-read",
133
"url": "https://cdn.phuquocdoge.com/thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
134
"expires": 1626945382,
135
"originalFileName": "cd56b1267498994271e48cb70d2dfc06.jpg",
136
"fileSize": 856919,
137
"cdn": "https://cdn.phuquocdoge.com/thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
138
"isVideo": false
139
},
140
"imageBgcolor": null,
141
"previewImages": [],
142
"artworkNameUrl": "geo-galaxy",
143
"isPrivate": 0,
144
"status": 1,
145
"price": 1500,
146
"currency": "usd",
147
"video": null,
148
"videoLink": null,
149
"currentVersionId": 12,
150
"draftVersionId": null,
151
"createdOn": "2021-07-12 02:21:20",
152
"modifiedOn": "2021-07-12 02:21:41",
153
"humanPrice": "$1,500.00",
154
"humanPriceJPY": "¥159,948",
155
"metadata": null,
156
"artistOrder": null,
157
"streamingUrl": null,
158
"numberOfEditions": "Open",
159
"videoThumbnail": null,
160
"users": {
161
"id": 2,
162
"roleId": 5,
163
"username": "phuquocdog",
164
"email": "[email protected]",
165
"title": null,
166
"firstname": "PQD",
167
"lastname": null,
168
"image": {
169
"id": 9,
170
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
171
"privacy": "public-read",
172
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
173
"expires": 1626639683,
174
"originalFileName": "phuquocoge.png",
175
"fileSize": 10553,
176
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
177
"isVideo": false
178
},
179
"cover": null,
180
"country": null,
181
"zone": null,
182
"address": null,
183
"zipcode": null,
184
"profile": null,
185
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
186
"url": null,
187
"amount": null,
188
"deposited": null,
189
"lastLogin": null,
190
"active": 1,
191
"language": null,
192
"specialRoles": 0,
193
"creationDate": "2021-06-30 08:00:18",
194
"modifiedDate": null,
195
"activeDate": "2021-06-30 08:00:18",
196
"artistNameUrl": null,
197
"organizational": 0,
198
"emailNotification": 1,
199
"deviceRegistered": 0
200
},
201
"artist": {
202
"id": 2,
203
"roleId": 5,
204
"username": "phuquocdog",
205
"email": "[email protected]",
206
"title": null,
207
"firstname": "PQD",
208
"lastname": null,
209
"image": {
210
"id": 9,
211
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
212
"privacy": "public-read",
213
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
214
"expires": 1626639683,
215
"originalFileName": "phuquocoge.png",
216
"fileSize": 10553,
217
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
218
"isVideo": false
219
},
220
"cover": null,
221
"country": null,
222
"zone": null,
223
"address": null,
224
"zipcode": null,
225
"profile": null,
226
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
227
"url": null,
228
"amount": null,
229
"deposited": null,
230
"lastLogin": null,
231
"active": 1,
232
"language": null,
233
"specialRoles": 0,
234
"creationDate": "2021-06-30 08:00:18",
235
"modifiedDate": null,
236
"activeDate": "2021-06-30 08:00:18",
237
"artistNameUrl": null,
238
"organizational": 0,
239
"emailNotification": 1,
240
"deviceRegistered": 0
241
}
242
}
243
],
244
"meta": {
245
"pagination": {
246
"total": 6,
247
"count": 3,
248
"per_page": 2,
249
"current_page": 1,
250
"total_pages": 3,
251
"links": {
252
"next": 2
253
}
254
}
255
}
256
}
Copied!

Get an Artwork the user

HTTP Request: GET https://api.phuquoc.dog/artworks/user/{username|id}
For example to get artwork with username eric
1
curl -X GET ${HOST}/artworks/user/phuqocdog?limit=2
2
-H "Content-Type: application/json" \
3
-H "Authorization : Bearer eyJ0eXAiOi"
Copied!

Get a Specific Artwork

The same people endpoint is used with a filter applied to return only a specific artwork. We've also specifically requested the fields we need to improve speed and readability
HTTP Request: GET https://api.phuquoc.dogartworks/{id}
For example to get artwork with id = 145
1
curl -X GET https://api.phuquoc.dog/artworks/12?key=57819db00e710314f64fc1de6cd56ca7
2
-H "Content-Type: application/json" \
3
-H "Authorization : Bearer eyJ0eXAiOi"
Copied!
Result:
1
{
2
"data": {
3
"id": 12,
4
"artistId": 2,
5
"name": "Geo galaxy",
6
"artistName": "Phuquoc Doge",
7
"artworkCategoryId": 2,
8
"image": {
9
"id": 30,
10
"key": "thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
11
"privacy": "public-read",
12
"url": "https://cdn.phuquocdoge.com/thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
13
"expires": 1626945382,
14
"originalFileName": "cd56b1267498994271e48cb70d2dfc06.jpg",
15
"fileSize": 856919,
16
"cdn": "https://cdn.phuquocdoge.com/thumbnail/14a5f1b72d2bacdaa67f40515d0a3d04.jpg",
17
"isVideo": false
18
},
19
"imageBgcolor": null,
20
"previewImages": [],
21
"artworkNameUrl": "geo-galaxy",
22
"isPrivate": 0,
23
"status": 1,
24
"price": 1500,
25
"currency": "usd",
26
"video": null,
27
"videoLink": null,
28
"currentVersionId": 12,
29
"draftVersionId": null,
30
"createdOn": "2021-07-12 02:21:20",
31
"modifiedOn": "2021-07-12 02:21:41",
32
"humanPrice": "$1,500.00",
33
"humanPriceJPY": "¥159,948",
34
"metadata": null,
35
"artistOrder": null,
36
"streamingUrl": null,
37
"numberOfEditions": "Open",
38
"videoThumbnail": null,
39
"users": {
40
"id": 2,
41
"roleId": 5,
42
"username": "phuquocdog",
43
"email": "[email protected]",
44
"title": null,
45
"firstname": "PQD",
46
"lastname": null,
47
"image": {
48
"id": 9,
49
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
50
"privacy": "public-read",
51
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
52
"expires": 1626639683,
53
"originalFileName": "phuquocoge.png",
54
"fileSize": 10553,
55
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
56
"isVideo": false
57
},
58
"cover": null,
59
"country": null,
60
"zone": null,
61
"address": null,
62
"zipcode": null,
63
"profile": null,
64
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
65
"url": null,
66
"amount": null,
67
"deposited": null,
68
"lastLogin": null,
69
"active": 1,
70
"language": null,
71
"specialRoles": 0,
72
"creationDate": "2021-06-30 08:00:18",
73
"modifiedDate": null,
74
"activeDate": "2021-06-30 08:00:18",
75
"artistNameUrl": null,
76
"organizational": 0,
77
"emailNotification": 1,
78
"deviceRegistered": 0
79
},
80
"artist": {
81
"id": 2,
82
"roleId": 5,
83
"username": "phuquocdog",
84
"email": "[email protected]",
85
"title": null,
86
"firstname": "PQD",
87
"lastname": null,
88
"image": {
89
"id": 9,
90
"key": "avatar/c81e728d9d4c2f636f067f89cc14862c.png",
91
"privacy": "public-read",
92
"url": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
93
"expires": 1626639683,
94
"originalFileName": "phuquocoge.png",
95
"fileSize": 10553,
96
"cdn": "https://cdn.phuquocdoge.com/avatar/c81e728d9d4c2f636f067f89cc14862c.png",
97
"isVideo": false
98
},
99
"cover": null,
100
"country": null,
101
"zone": null,
102
"address": null,
103
"zipcode": null,
104
"profile": null,
105
"bio": "Decentralized dogs social network, it is the best social network for pets, where you can share photos and videos of your pet's life, rescue puppies, adopt a pet, find pet friendly places and take advantage of our useful pet services. Join the moon mission.",
106
"url": null,
107
"amount": null,
108
"deposited": null,
109
"lastLogin": null,
110
"active": 1,
111
"language": null,
112
"specialRoles": 0,
113
"creationDate": "2021-06-30 08:00:18",
114
"modifiedDate": null,
115
"activeDate": "2021-06-30 08:00:18",
116
"artistNameUrl": null,
117
"organizational": 0,
118
"emailNotification": 1,
119
"deviceRegistered": 0
120
}
121
}
122
}
Copied!

Delete an Artwork

HTTP Request: DELETE https://api.phuquoc.dog/artworks/{id}
This endpoint allows you to delete a resource.
Deleting a resource removes it from all relation tables and rate schemes! This cannot be undone so be careful
Special Query Parameters
Parameter
Description
Example
id
The ID of the resource to delete
id=50
A successful delete will return the following JSON:
1
{
2
"success": {
3
"message": "Delete artwork success",
4
"code": 202
5
}
6
}
Copied!

Last modified 6mo ago