greptilian logo

IRC log for #rest, 2017-10-13

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
03:39 tbsf joined #rest
07:40 tbsf joined #rest
08:32 Haudegen joined #rest
10:39 tbsf joined #rest
12:16 shodan` joined #rest
13:40 Haudegen joined #rest
15:01 tbsf joined #rest
15:02 tbsf_ joined #rest
15:16 Haudegen joined #rest
15:33 shodan` joined #rest
15:53 wsieroci joined #rest
16:05 shodan` joined #rest
16:32 tbsf joined #rest
19:12 shodan` joined #rest
19:34 tbsf_ joined #rest
19:34 tbsf_ joined #rest
20:04 shodan` joined #rest
20:26 wsieroci joined #rest
20:39 tbsf joined #rest
21:35 tbsf_ joined #rest
21:38 wsieroci joined #rest
21:54 tbsf joined #rest
22:19 shodan` joined #rest
23:07 squib0 joined #rest
23:07 squib0 hey guys very new to APIs here.
23:08 squib0 so I have an api  at https://url/api/v1/application
23:08 squib0 a GET returns a list of all application objects of course
23:08 squib0 one of the available params is {isCustom:True}
23:09 squib0 so if I GET https://url/api/v1/appication?isCustom=True
23:09 squib0 that works, it narrows down the objects. but that attribute isn't stored in the response
23:10 squib0 so I'm wondering how I would have parsed the full object list for a custom application if I hadn't supplied that isCustom param
23:10 squib0 can an API store attributes that are not returned?
23:23 whartung you mean there’s no way looking at the resource representation to discover if it is a “custom” application?
23:45 squib0 whartung, there probably is, but I think I am having a general misunderstanding of the relationship between a param and what's contained in the response
23:46 whartung how so?
23:46 squib0 is it that in the api documentation it will tell you the params available and it will return whatever is documented?
23:46 whartung yes
23:47 squib0 and the response will not necessarily contain the key:value requested
23:47 squib0 sorry if these are stupid questions, I'm very new to programming
23:47 whartung it will return what you want it to return, and (ideally) what it’s documented to return. What do you want it to do?
23:49 whartung I’m sorry, I have to leave…have a good weekend…(I’ll be back on monday…)
23:49 squib0 I was thinking that when I narrow down my GET by saying ?isCustom=True , that the API would return whatever objects had that key:value pair associated with it. so I was expecting isCustom:True to be an actual part of the records returned
23:49 squib0 and I'm learning that this was a false expectation

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

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