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

Make it easy to use the API from table view #855

Open
joepio opened this issue Mar 4, 2024 · 2 comments · May be fixed by #892
Open

Make it easy to use the API from table view #855

joepio opened this issue Mar 4, 2024 · 2 comments · May be fixed by #892

Comments

@joepio
Copy link
Member

joepio commented Mar 4, 2024

  • User has table containing instances
  • User wants to fetch the data... somewhere

How do we make their UX as easy as possible?

Copy-Paste /query URL

  • Add an action in the Table view for copying the whole /query URL, which should return current resources.

Generate some JS / TS code blocks

  • Using @tomic/lib stuff.
@Polleps
Copy link
Member

Polleps commented Mar 4, 2024

We should make some 'how to fetch' type view where the user can chooses a client lib (e.g. JS/TS, React, curl) and then it generates the code. Then we can make this available for more classes than just tables.

@joepio
Copy link
Member Author

joepio commented Mar 4, 2024

This view should also keep in mind what the class is, e.g. a "Table" needs a query, right?

In some cases we want users to utilize specific APIs, such as with collections or the search endpoint.

Polleps added a commit that referenced this issue Jun 11, 2024
Polleps added a commit that referenced this issue Jun 11, 2024
@Polleps Polleps linked a pull request Jun 11, 2024 that will close this issue
3 tasks
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

Successfully merging a pull request may close this issue.

2 participants