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

HAL / ActivityStreams Response Questions #645

Open
azaroth42 opened this issue Jul 22, 2024 · 0 comments
Open

HAL / ActivityStreams Response Questions #645

azaroth42 opened this issue Jul 22, 2024 · 0 comments
Labels
API The issue is about an API or service question
Milestone

Comments

@azaroth42
Copy link
Collaborator

Questions from #455 by @beaudet:

  • Would adopting specs for filtering JSON responses be a useful additional layer?
  • Having the number of items available at the API endpoint is useful but sounds potentially expensive?
  • Does the Activity Streams spec enable a window of the result set to be fetched in a standard way? Basically, is pagination supported?
  • And is pagination supported if the number of results isn't known in advance?

Filtering at the server side seems like just search? e.g. graphQL, SPARQL, or something else ... so post 1.0 at the very least. At the client side would be implementation details. So unless I'm missing something, I think the answer is "not yet".

Number of items -- yes, in LUX we tried it, and it was (indeed) expensive as you have to keep searching for all of the matches, rather than stopping when you get at least one. And it's not really necessary either -- the important distinction is 0 vs 1.

Pagination -- yes. Docs are a bit hard to find but: https://linked.art/api/1.0/ecosystem/search/

Pagination without total count -- yes, you can just have next links and no totalItems

@azaroth42 azaroth42 added API The issue is about an API or service question labels Jul 22, 2024
@azaroth42 azaroth42 added this to the Questions milestone Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The issue is about an API or service question
Projects
None yet
Development

No branches or pull requests

1 participant