greptilian logo

IRC log for #rest, 2016-02-12

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:02 speeder_ returned only {}
00:02 speeder_ that is not unexpected though
00:02 speeder_ (I assume their server is read-only)
00:03 pdurbin speeder_: are you using curl? can you paste the command you just used on that server?
00:03 speeder_ pdurbin: no, I am making an iPhone app
00:04 pdurbin oh. you're POSTing the JSON from iOS
00:05 speeder_ yes
00:05 speeder_ I will test writing to netcat and see what I am actually getting
00:08 speeder_ on netcat it looks like what I intended to send... quesiton: REST servers with JSON support expect me to send the whole object as a monolithic object (ie: {lostsofstuff} ) or as multiple sepraate things? (something:1, something:"string")
00:12 pdurbin speeder_: if it helps, here's the JSON we expect in our API to be POSTed in order to create a role: https://github.com/IQSS/dataverse/blob/develop/scripts/api/data/role-curator.json
00:12 pdurbin more complicated to create a dataset: https://github.com/IQSS/dataverse/blob/develop/scripts/search/tests/data/dataset-finch1.json
00:13 speeder_ pdurbin:  my json looks similar, but should I send it with the external {} ?
00:14 pdurbin the external {} just means it an object, as opposed to an array, which would have external []
00:14 speeder_ I know, but you send in a single post, a entire object, or only the object contents? (the server I am using that adds the "id" property on its own)
00:15 pdurbin yeah, you wouldn't send the id. let the server pick the next available id for you
00:15 speeder_ that is what I thought :)
00:16 speeder_ pdurbin: my question is: if I strip the {} from my httpbody start and end, maybe it will work?
00:17 pdurbin my impression was that you are trying to create two objects at once with one payload of JSON. I think you should send two separate payloads to create the two objects. if that's what you're actually up to
00:22 pdurbin anyway, my kid is ready for a bedtime story so I'll see ya. maybe trygvis or whartung can help you
00:23 speeder_ thanks
00:23 * speeder_ is still trying to create one object, not suceeding.
00:23 * speeder_ tried to send object with linebreaks, a formatted json... result was lots of "/n" strings on the server :/
00:24 whartung what are we talking about?
00:30 quimrstorres joined #rest
00:32 speeder_ found what it was
00:32 speeder_ malformed http header
00:32 speeder_ I forgot to put in the http header the content type
00:37 fuzzyhorns joined #rest
01:51 tbsf joined #rest
01:54 tbsf joined #rest
02:35 talios joined #rest
05:10 leolove joined #rest
05:23 fuzzyhorns joined #rest
05:26 baweaver joined #rest
05:35 jgornick joined #rest
06:37 fuzzyhorns joined #rest
06:54 Macaveli joined #rest
06:56 _ollie joined #rest
06:58 Macaveli joined #rest
07:02 sdeh joined #rest
07:36 leolove joined #rest
07:38 fuzzyhorns joined #rest
07:52 sdeh joined #rest
08:00 sdeh_ joined #rest
08:13 graste joined #rest
08:15 timg___ joined #rest
08:22 wsiqueir joined #rest
08:26 quimrstorres joined #rest
08:30 timg____ joined #rest
08:32 fumanchu_ joined #rest
08:39 fuzzyhorns joined #rest
08:43 sdeh_ joined #rest
09:21 quimrstorres joined #rest
09:23 sdeh_ joined #rest
09:23 quimrstorres joined #rest
09:27 graste joined #rest
09:40 fuzzyhorns joined #rest
10:17 baweaver joined #rest
10:27 timg___ joined #rest
10:32 fumanchu joined #rest
10:42 fuzzyhorns joined #rest
11:43 fuzzyhorns joined #rest
11:52 quimrstorres joined #rest
11:57 leolove joined #rest
12:11 Macaveli joined #rest
12:18 baweaver joined #rest
12:34 quimrstorres joined #rest
12:34 interop_madness joined #rest
12:43 fuzzyhorns joined #rest
13:14 saml joined #rest
14:06 mezod joined #rest
14:19 baweaver joined #rest
14:24 tbsf joined #rest
14:34 quimrstorres joined #rest
14:38 quimrstorres joined #rest
14:45 fuzzyhorns joined #rest
14:56 _ollie1 joined #rest
15:07 tbsf joined #rest
15:13 mezod joined #rest
15:38 eschmidbauer joined #rest
15:39 eschmidbauer left #rest
15:45 fuzzyhorns joined #rest
15:49 quimrstorres joined #rest
15:55 Macaveli joined #rest
16:31 leolove joined #rest
16:46 tbsf joined #rest
16:46 fuzzyhorns joined #rest
16:46 tbsf joined #rest
16:47 baweaver joined #rest
17:41 leolove joined #rest
17:47 fuzzyhorns joined #rest
17:52 timg___ joined #rest
17:55 baweaver joined #rest
18:48 fuzzyhorns joined #rest
19:48 fuzzyhorns joined #rest
19:56 baweaver joined #rest
20:32 sdeh_ joined #rest
20:34 tbsf joined #rest
20:49 fuzzyhorns joined #rest
21:26 Coldblackice joined #rest
21:50 fuzzyhorns joined #rest
21:51 fuzzyhorns joined #rest
21:53 _ollie joined #rest
21:57 lemur joined #rest
22:19 tbsf joined #rest
22:58 baweaver joined #rest
23:02 mezod joined #rest
23:37 fuzzyhorns joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/