Time |
S |
Nick |
Message |
00:48 |
|
|
tr3online joined #rest |
00:56 |
|
|
shrink0r1 joined #rest |
00:59 |
|
|
proteusguy joined #rest |
01:31 |
|
|
pezra joined #rest |
02:02 |
|
|
tr3online joined #rest |
03:23 |
|
|
tr3online joined #rest |
04:29 |
|
|
_ollie joined #rest |
05:24 |
|
|
tr3online joined #rest |
06:07 |
|
|
woky joined #rest |
06:10 |
|
woky |
Hello. What's the correct status code that should the resource return on PUT when the body of the request didn't conform to the resource constraints (bad xml/json structure, missing field, negative int, ...)? |
06:11 |
|
woky |
Is it just 400? |
06:17 |
|
|
singh_abhinav joined #rest |
06:19 |
|
singh_abhinav |
I am creating REST API for uploading files. Any pointers on best practises for designing file upload API? I'm particularly interested in what all the request and response headers shall I sent |
06:20 |
|
tmoore |
woky: 422 is typical |
06:20 |
|
tmoore |
http://stackoverflow.com/a/20215807/29470 |
06:22 |
|
trygvis |
422 is when you're sending illegal json/xml, 400 if the file is semantically invalid (missing fields etc) |
06:27 |
|
woky |
great, than you, tmoore, trygvis |
06:28 |
|
tmoore |
trygvis: I thought it was the other way around |
06:28 |
|
tmoore |
(according to the link above and other things I've read) |
06:28 |
|
trygvis |
uhm, yes. you're right |
06:29 |
|
trygvis |
sorry |
06:50 |
|
|
singh_abhinav joined #rest |
07:26 |
|
|
tr3online joined #rest |
07:29 |
|
|
singh_abhinav joined #rest |
07:29 |
|
|
proteusguy joined #rest |
07:36 |
|
singh_abhinav |
I am creating REST API for uploading files. Any pointers on best practises for designing file upload API? I'm particularly interested in what all the request and response headers shall I sent |
07:55 |
|
|
proteusguy joined #rest |
08:12 |
|
|
graste joined #rest |
08:27 |
|
|
tr3online joined #rest |
09:00 |
|
|
rosstuck joined #rest |
09:29 |
|
|
interop_madness joined #rest |
09:36 |
|
|
proteusguy joined #rest |
09:47 |
|
|
Left_Turn joined #rest |
10:02 |
|
|
fumanchu joined #rest |
10:28 |
|
|
tr3online joined #rest |
10:39 |
|
|
systmkor joined #rest |
10:39 |
|
pdurbin |
singh_abhinav: you could look at how Twitter lets you upload pictures |
10:43 |
|
singh_abhinav |
yeah sure I am looking at it pdurbin |
10:48 |
|
|
shrink0r joined #rest |
11:09 |
|
|
SwashBuckla joined #rest |
11:09 |
|
SwashBuckla |
I am a bit of a REST noob. Can anyone see how to create an order given this documentation? I am using Basic Auth: https://developer.bigcommerce.com/api/stores/v2/orders#create-order |
11:10 |
|
SwashBuckla |
whenever I send raw a copy-paste of that example Request JSON, I get [{"status":415,"message":"The specified input content type is not valid."}] |
11:13 |
|
pdurbin |
"When performing a request that contains a body (eg. POST or PUT), the type of content you are sending needs to be specified in the Content-Type header." https://developer.bigcommerce.com/api/media-types |
11:13 |
|
|
fumanchu_ joined #rest |
11:13 |
|
SwashBuckla |
so... |
11:14 |
|
SwashBuckla |
!paste |
11:15 |
|
pdurbin |
SwashBuckla: which Content-Type header are you sending? |
11:15 |
|
SwashBuckla |
application/json |
11:15 |
|
SwashBuckla |
but I could be doing it wrong |
11:15 |
|
SwashBuckla |
¯\_(ツ)_/¯ |
11:16 |
|
SwashBuckla |
pdurbin: http://pastebin.com/jK1czcrQ |
11:16 |
|
SwashBuckla |
raw request pasted there |
11:17 |
|
SwashBuckla |
is that the right way to do it? |
11:21 |
|
pdurbin |
it'd be easier to tell from looking at a curl command |
11:30 |
|
SwashBuckla |
how do I get one? |
11:31 |
|
SwashBuckla |
oh, I have found some docs on that |
11:40 |
|
|
Left_Turn joined #rest |
11:43 |
|
SwashBuckla |
pdurbin: well, I fixed it. |
11:43 |
|
SwashBuckla |
It's much easier to use curl |
11:43 |
|
SwashBuckla |
than Postman... |
12:14 |
|
|
mezod joined #rest |
12:29 |
|
pdurbin |
SwashBuckla: good job |
12:30 |
|
|
tr3online joined #rest |
12:35 |
|
|
charlie_ joined #rest |
12:36 |
|
|
charlie_ left #rest |
13:01 |
|
|
SwashBuckla left #rest |
13:24 |
|
|
_ollie joined #rest |
13:26 |
|
|
foist joined #rest |
13:52 |
|
|
tr3online joined #rest |
15:26 |
|
|
tr3online joined #rest |
16:20 |
|
|
pezra joined #rest |
16:43 |
|
|
tr3online joined #rest |
17:26 |
|
|
graste joined #rest |
17:59 |
|
|
Mxyzpltk joined #rest |
19:46 |
|
|
pezra joined #rest |
19:57 |
|
|
tr3online joined #rest |
20:30 |
|
|
tr3online joined #rest |
20:43 |
|
|
rue joined #rest |
21:00 |
|
|
mezod joined #rest |
21:01 |
|
|
mezod joined #rest |
21:01 |
|
|
mezod joined #rest |
21:01 |
|
|
mezod joined #rest |
21:04 |
|
|
mezod joined #rest |
22:11 |
|
|
shrink0r joined #rest |
22:18 |
|
|
tr3online joined #rest |
22:39 |
|
|
JMZ_DMZ joined #rest |
22:39 |
|
JMZ_DMZ |
say you have an apikey and user-auth securing access to a database |
22:39 |
|
JMZ_DMZ |
if someone compromises the api key |
22:40 |
|
JMZ_DMZ |
could they even read any db info without having a user/pass? |
22:48 |
|
pdurbin |
could read part of the db, probably. sure |
22:52 |
|
|
pezra joined #rest |