PDA

View Full Version : Semantic Url



fabioebner
28 Jan 2014, 4:02 AM
anyone here works with semantic url on rest clients?


i need to use this
localhost/myapp/book/1/page/3
instead this
localhost/myapp?book=1&page=3


tks

skirtle
28 Jan 2014, 7:53 AM
You should just need to write a custom proxy:

http://skirtlesden.com/articles/custom-proxies

It's pretty easy once you know how and something I do in all my apps.

fabioebner
28 Jan 2014, 8:15 AM
hei man.. tks but i'm using architect and i can't extend one Rest Proxy :/ do you know how i resolv this??tks

skirtle
29 Jan 2014, 9:29 AM
Haven't tried it myself but Architect does allow you to add your own classes:

http://www.sencha.com/blog/building-a-user-extension-and-integrating-it-into-sencha-architect-3-part-2/