-
Notifications
You must be signed in to change notification settings - Fork 6
Better way to register APIs #9
Comments
api = Api(name='api/v1') |
+1 no version number. api = Api() ... @api.route('/users') or @api.route('/users') On Mon, Jan 5, 2015 at 10:40 AM, Raghu [email protected] wrote:
Regards |
I think we should keep the url routing part separate from the resources. On Mon, Jan 5, 2015 at 1:37 PM, Kracekumar Ramaraju <
|
Not sure. How current registration doesn't violate it. api = Api(name='api', version='v1') And decorator can be written as @register(api_object, 'resource') as well If you are using http, at some point bridge needs to exist. Calling a On Mon, Jan 5, 2015 at 1:42 PM, Raghu [email protected] wrote:
Regards |
Yes but register_resource is at http_api level not at resource level. On Mon, Jan 5, 2015 at 2:01 PM, Kracekumar Ramaraju <
|
Today the way to register APIs is to give it a leading name and version number which is kind of hardcoded.
This translates to
api/v1/xxx
Both name and version should be optional.
Ideally it should be root accessible / without a version number
For example
The text was updated successfully, but these errors were encountered: