Skip to content

getPosts API change. #1

@binyamin555

Description

@binyamin555

Systems with a dynamic amount of entries will usually not provide an API to receive all entries as once, since it may contain such a large amount of entries, it'll crash trying to provide them all.

Moreover, you wouldn't usually want to get all entries at once.

I'd suggest to change the following API to include parameters from where to start (offset) and an amount of entries to get (amount) while limiting the amount to a max value.

https://github.com/xpodev/jsblog/blob/main/packages/core/src/blog.ts#L50-L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions