Skip to content
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

Data app: Provide query templates #112

Open
paterczm opened this issue Aug 26, 2015 · 2 comments
Open

Data app: Provide query templates #112

paterczm opened this issue Aug 26, 2015 · 2 comments

Comments

@paterczm
Copy link
Contributor

The app already provides some base query body, e.g.:

{
  "objectType": "terms",
  "version": "2.1.0",
}

It's of little help. I would like it to provide a simple, but working query:

{
  "objectType": "terms",
  "version": "2.1.0",
  "query":{  
      "field":"objectType",  
      "op":"=",  
      "rvalue":"terms"  
  },  
  "projection":[  
      {  
        "field":"*",
        "include": true
      }  
  ] 
}

Which can be used as a base to query for whatever you need.

This is a find example. We need example queries for save, update and delete too.

@bvulaj
Copy link
Member

bvulaj commented Aug 31, 2015

Just throwing this out there, but has anybody investigated Swagger for this kind of thing? Not necessarily just this, but potentially the data and metadata management applications as well.

Here's a very basic example containing a swagger-generated PUT body. The swagger schema itself is, in this case, generated from a Jersey / JAXRS application.

@paterczm
Copy link
Contributor Author

paterczm commented Sep 1, 2015

We didn't investigate Swagger (first time I hear about it), but it does look interesting. Could you create an issue tagged as enhancement in the lightblue-rest project?

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

No branches or pull requests

2 participants