New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appserver-io/appserver] URL Routes according to REST defacto standard #840

Closed
hhoechtl opened this Issue Jun 16, 2015 · 6 comments

Comments

Projects
None yet
5 participants
@hhoechtl
Contributor

hhoechtl commented Jun 16, 2015

It would be great, if it's possible to have URLs like /something/action.do/:id/update/:address

Some libraries already use this format of REST endpoints:
http://www.restapitutorial.com/lessons/httpmethods.html
https://docs.angularjs.org/api/ngResource/service/$resource

@wick-ed wick-ed changed the title from URL Routes according to REST defacto standard to [appserver-io/appserver] URL Routes according to REST defacto standard Jun 16, 2015

@wick-ed wick-ed added the enhancement label Jun 16, 2015

@wick-ed wick-ed added this to the Release 1.2.0 milestone Jun 16, 2015

@smolinari

This comment has been minimized.

Show comment
Hide comment
@smolinari

smolinari Jun 16, 2015

Contributor

Wouldn't this be similar to doing something like Routlt? Maybe RoutRest? 😄

Theoretically, it would be better, if the REST routes didn't have .do file extensions in them either.

Scott

Contributor

smolinari commented Jun 16, 2015

Wouldn't this be similar to doing something like Routlt? Maybe RoutRest? 😄

Theoretically, it would be better, if the REST routes didn't have .do file extensions in them either.

Scott

@wick-ed wick-ed added the compliance label Jul 24, 2015

@akleiber

This comment has been minimized.

Show comment
Hide comment
@akleiber

akleiber Jan 7, 2016

Contributor

+1 for this

As mentioned by @smolinari we should get rid of the .do suffix.
Some example resources would be:

/books
/books/123
/books/123/authors
/books/123/authors/1

I am mentioning filtering and pagination although this would be another issue

/books?filter.id=123&filter.release=2010&limit=10&offset=30&sort=+id&sort=-author.name

Example implementations:

Contributor

akleiber commented Jan 7, 2016

+1 for this

As mentioned by @smolinari we should get rid of the .do suffix.
Some example resources would be:

/books
/books/123
/books/123/authors
/books/123/authors/1

I am mentioning filtering and pagination although this would be another issue

/books?filter.id=123&filter.release=2010&limit=10&offset=30&sort=+id&sort=-author.name

Example implementations:

@wick-ed

This comment has been minimized.

Show comment
Hide comment
@wick-ed

wick-ed Jan 7, 2016

Member

Hi @akleiber ,

thanks for the examples. :)
We too discussed this to be an enormously useful feature. Sadly this has to come second to other issues. :(
Will come to that in the future.

@smolinari I would rather go with Restlt :D

The .do extension can be hidden using rewrites but is currently needed to determine the backend used for processing (servlet engine vs. FastCGI vs. PC vs. ...).

Regards,

Bernhard

Member

wick-ed commented Jan 7, 2016

Hi @akleiber ,

thanks for the examples. :)
We too discussed this to be an enormously useful feature. Sadly this has to come second to other issues. :(
Will come to that in the future.

@smolinari I would rather go with Restlt :D

The .do extension can be hidden using rewrites but is currently needed to determine the backend used for processing (servlet engine vs. FastCGI vs. PC vs. ...).

Regards,

Bernhard

@smolinari

This comment has been minimized.

Show comment
Hide comment
@smolinari

smolinari Jan 7, 2016

Contributor

Restlt sounds good! Maybe Tim can rename the project he is working on. 😄

https://github.com/wagnert/api

Scott

Contributor

smolinari commented Jan 7, 2016

Restlt sounds good! Maybe Tim can rename the project he is working on. 😄

https://github.com/wagnert/api

Scott

@wick-ed

This comment has been minimized.

Show comment
Hide comment
@wick-ed

wick-ed Jan 7, 2016

Member

😄

Member

wick-ed commented Jan 7, 2016

😄

@wagnert

This comment has been minimized.

Show comment
Hide comment
@wagnert
Member

wagnert commented Sep 17, 2016

Issue moved to appserver-io/routlt #38 via ZenHub

@wagnert wagnert closed this Sep 17, 2016

@wagnert wagnert reopened this Sep 17, 2016

@wagnert wagnert closed this Sep 24, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment