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

[FEATURE] Expose convenient interfaces by agent #150

Open
1 of 2 tasks
priyanshunayan opened this issue Jul 13, 2020 · 2 comments
Open
1 of 2 tasks

[FEATURE] Expose convenient interfaces by agent #150

priyanshunayan opened this issue Jul 13, 2020 · 2 comments

Comments

@priyanshunayan
Copy link
Member

priyanshunayan commented Jul 13, 2020

I'm submitting a

  • bug report.
  • feature request.

Current Behaviour:

Presently Agent provides only CRUD operations for developers to interact with the APIDOC. It would be helpful to expose different methods like getSupportedOperations or getMembers. These methods can allow developers to take actions programatically, instead of parsing the response themselves. It would be nice to have methods similar as reference implementation: https://github.com/HydraCG/Heracles.ts/tree/master/docs#functions.

Expected Behaviour:

One would be able to query from the dict like they normally do. for eg: res.members to get members of the collections.

Steps to reproduce:

NA

Do you want to work on this issue?

yes

@xadahiya
Copy link
Member

Not a bad idea! @chrizandr what do you think?

@chrizandr
Copy link
Member

Yes this seems useful. Heracles already parses the response of the API, we should try something similar. I don't think getSupportedOperations would be a part of the response object, we already have supported operations in core library when the API Doc is parsed into the HydraDoc object.

It would be a good idea to consolidate how responses can be stored as python objects and how we parse the API responses, this would be a great addition to the core library and then we could use core in agent.

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

No branches or pull requests

3 participants