You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the RESTful API design web services should be specialized around resources and their granularization e.g. PUT /companies/{id}/locations/{id}/employees/{id}
Building RESTful API services using Takes have problems:
One has to heavily use TkRegex, which cannot be passed to TkAuth, TkSecure, TkMethods, etc. (just to name a few). TkRegex can currently be only used in FkRegex, drastically limiting the flexibility of use.
Do you think adding (many) new constructors containing TkRegex is a good design?
There is a class RqHref which let access all query parameters. One could create a similar class, say, RqPath which could let access all the path parameters with a matcher (similarly to RqRegex). But then we expose ourselves to the errors with class compositions, i.e. assuming the path /companies/{id}/locations/{id}/employees/{id}, a class TkCrudEmployees would only work if it's inside the TkCrudLocations which is inside the TkCrudCompanies. Do you think it's a good design?
Or maybe you believe the RESTful API design being a state transfer and close to CRUD operations is not aligned with the object-oriented paradigm of the proper web services' design? In such case it would be nice to share new ideas.
The text was updated successfully, but these errors were encountered:
According to the RESTful API design web services should be specialized around resources and their granularization e.g.
PUT /companies/{id}/locations/{id}/employees/{id}
Building RESTful API services using Takes have problems:
TkRegex
, which cannot be passed toTkAuth
,TkSecure
,TkMethods
, etc. (just to name a few).TkRegex
can currently be only used inFkRegex
, drastically limiting the flexibility of use.Do you think adding (many) new constructors containing
TkRegex
is a good design?RqHref
which let access all query parameters. One could create a similar class, say,RqPath
which could let access all the path parameters with a matcher (similarly toRqRegex
). But then we expose ourselves to the errors with class compositions, i.e. assuming the path/companies/{id}/locations/{id}/employees/{id}
, a classTkCrudEmployees
would only work if it's inside theTkCrudLocations
which is inside theTkCrudCompanies
. Do you think it's a good design?The text was updated successfully, but these errors were encountered: