Time |
S |
Nick |
Message |
01:45 |
|
|
fuzzyhorns joined #rest |
01:55 |
|
|
azer_ joined #rest |
02:51 |
|
|
fuzzyhorns joined #rest |
04:02 |
|
|
sulaiman joined #rest |
04:11 |
|
sulaiman |
Hello. |
04:12 |
|
sulaiman |
I just created a very simple readonly API that looks up parking zones for my city. Can anyone review it for me? |
04:12 |
|
sulaiman |
It only has 3 ends points, https://pure-garden-3175.herokuapp.com/api/v1/zones <-- lists all zones |
04:13 |
|
sulaiman |
and lists zones by GPS coordinates, https://pure-garden-3175.herokuapp.com/api/v1/zones?lat=25.266817&lng=55.318732 |
04:14 |
|
sulaiman |
the other one just retrieves an individual zone with a zone number |
06:41 |
|
|
azer_ joined #rest |
07:17 |
|
|
interop_madness joined #rest |
07:19 |
|
|
azer_ joined #rest |
08:02 |
|
|
vanHoesel joined #rest |
08:10 |
|
|
graste joined #rest |
08:45 |
|
|
Coldblackice_ joined #rest |
08:51 |
|
|
vanHoesel joined #rest |
08:59 |
|
daxim |
sulaiman, what you have so far is only an HTTP API; to make it restful: give resources URIs, add hyperlinks between them, define link relations and hypermedia controls (i.e. forms or URI templates for the GPS lookup), describe media types. since you're using JSON, HAL can help you: <http://tools.ietf.org/html/draft-kelly-json-hal> |
09:03 |
|
asdf` |
there's also narwhl.com for a similar mediatype with i think some more prose docs |
11:38 |
|
|
sulaiman joined #rest |
12:12 |
|
|
sulky joined #rest |
12:22 |
|
|
rickharrison joined #rest |
12:39 |
|
|
DrinkingAndFight joined #rest |
13:27 |
|
|
sulky joined #rest |
13:57 |
|
|
fuzzyhorns joined #rest |
14:23 |
|
|
saml joined #rest |
14:25 |
|
|
fumanchu joined #rest |
15:12 |
|
|
ramsey joined #rest |
15:50 |
|
|
fumanchu_ joined #rest |
16:41 |
|
|
arbelos_ joined #rest |
16:47 |
|
|
FreezingDroid joined #rest |
16:52 |
|
|
rmwdeveloper joined #rest |
16:55 |
|
|
sulky joined #rest |
17:05 |
|
|
arbelos_ joined #rest |
17:08 |
|
|
sulky joined #rest |
18:34 |
|
|
graste joined #rest |
20:02 |
|
|
cigarshark joined #rest |
20:10 |
|
|
fuzzyhorns joined #rest |
20:11 |
|
|
fuzzyhorns joined #rest |
21:04 |
|
|
foist joined #rest |
21:14 |
|
|
Coldblackice_ joined #rest |
21:46 |
|
|
mgomezch joined #rest |
21:54 |
|
|
fuzzyhorns joined #rest |
22:15 |
|
|
vanHoesel joined #rest |
23:03 |
|
sulaiman |
thanks daxim, asdf` |
23:04 |
|
sulaiman |
I updated my API, https://pure-garden-3175.herokuapp.com/api/v1/zones |
23:04 |
|
sulaiman |
based on JSON HAL |
23:05 |
|
sulaiman |
In my API, if I have only one zone type, I have a field called "zone_type: X", if I have more than one, i named it "zone_types: [X, Y, Z]" is that confusing? |
23:06 |
|
whartung |
yes |
23:06 |
|
sulaiman |
should I always use "zone_types: [X]" ? |
23:06 |
|
whartung |
I would |
23:06 |
|
fumanchu_ |
ditto |
23:06 |
|
|
fuzzyhorns joined #rest |