Skip to content
Discussion options

You must be logged in to vote

@jlnaps it sounds like you're talking about an "action" style, non-restful endpoint that needs to return a collection?
https://spscommerce.github.io/sps-api-standards/standards/url-structure.html#actions

If so, then I think the answer largely depends on your implementation and less on the standards.

Generally speaking, if you can pivot to think about the action as a noun with its own resource, then you can apply the API Standards much more closely. This would imply shifting /users/{id}/activate to something more restful like /users/{id}/activations/ where activation is now a proper collection that. Of course, as a proper collection, you would need to provide a performant way to continuall…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@jlnaps
Comment options

jlnaps Oct 28, 2022
Collaborator Author

@ca0abinary
Comment options

Comment options

You must be logged in to vote
2 replies
@jlnaps
Comment options

jlnaps Nov 21, 2022
Collaborator Author

@travisgosselin
Comment options

Answer selected by travisgosselin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants