In the first article I started discussing RESTForms - REST API for your persistent classes. We talked about basic features, now, I'd like to discuss advanced features - mainly queries capabilites:
- Basic queries
- Query arguments
- Custom queries
Queries
Queries allow getting slices of data, based on arbitrary criteria. There are two query types in RESTForms:
- Basic queries work for all RESTForms classes once defined and they differ only by the field list
- Custom queries work only for the classes in which they are specified and available, but the developer has full access to query text