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

hello! i met a question on predicate #1691

Closed
miricy opened this issue May 15, 2018 · 5 comments
Closed

hello! i met a question on predicate #1691

miricy opened this issue May 15, 2018 · 5 comments
Assignees
Labels
Question/support This issue contains a question or request of support on Kapua

Comments

@miricy
Copy link
Contributor

miricy commented May 15, 2018

i am inquiring according to the predicate,response is 200,but no data was queried.Data is present in the database

@miricy
Copy link
Contributor Author

miricy commented May 15, 2018

@Coduz Excuse me ,I am so sorry to bother you.Could you help me about dealing above problems.
Thank you very much!

@Coduz Coduz self-assigned this May 15, 2018
@Coduz Coduz added the Question/support This issue contains a question or request of support on Kapua label May 15, 2018
@Coduz
Copy link
Contributor

Coduz commented May 15, 2018

Hi @miricy ,

Sorry but I didn't get (actually find) the question...
Can you please describe your scenario? What are you doing? What is the expected behaviour? And what is the actual behaviour instead?

Regards,

Alberto

@miricy
Copy link
Contributor Author

miricy commented May 21, 2018

Thank you for your reply. I'm sorry, it's been so long. Can you give me a sample of the format of user query, or where can I see the format of the query?
{ "fetchAttributes": [ "string" ], "predicate": {}, "scopeId": "string", "sortCriteria": {}, "limit": 0, "offset": 0 }
What is the format of this option ‘predicate’ and ‘fetchAttributes


http://oss.izhiju.cn/tmp/faqimg/fetchuser.png

@Coduz
Copy link
Contributor

Coduz commented May 21, 2018

Hi @miricy ,

Currently "predicates" are not supported via REST API. User entity does not have and additional attribute to fetch (Devices instead have 2 additional attributes to fetch).

The example query that you can use is:

{
 "scopeId": "AQ",
 "offset": 0,
 "limit": 50
}

You can do some filtering using query parameters in the /_/users resource.
Available query parameters are:

  • name - This works as exact match
  • offset
  • limit

There are plans to implement predicates filtering and sortCriteria in REST API. Please follow issue: #803

Regards,

Alberto

@miricy
Copy link
Contributor Author

miricy commented May 22, 2018

Ok, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question/support This issue contains a question or request of support on Kapua
Projects
None yet
Development

No branches or pull requests

2 participants