Re: [openstack-dev] [Neutron] REST API - entity level validation

2014-06-16 Thread Avishay Balderman
: [openstack-dev] [Neutron] REST API - entity level validation Avishay, what you say here is correct. However, as we are in the process of moving to Pecan as REST API framework I would probably refrain from adding new features to it at this stage. Therefore, even if far from ideal, this kind of

Re: [openstack-dev] [Neutron] REST API - entity level validation

2014-06-15 Thread Salvatore Orlando
Avishay, what you say here is correct. However, as we are in the process of moving to Pecan as REST API framework I would probably refrain from adding new features to it at this stage. Therefore, even if far from ideal, this kind of validation should perhaps be performed in the DB layer. I think

[openstack-dev] [Neutron] REST API - entity level validation

2014-06-05 Thread Avishay Balderman
Hi With the current REST API engine in neutron we can declare attributes validations. We have a rich set of validation functions https://github.com/openstack/neutron/blob/master/neutron/api/v2/attributes.py However we do not have the concept of entity level validation. Example: I have an API ‘cr