HomePhabricator

[e.cash] Get blog posts

Description

[e.cash] Get blog posts

Summary:
Adding the functions and tests that will be used to fetch the blog posts from the new strapi cms
Strapi has a response limit for how many entries it can return at once. It can be upped to 100 which
would cover our existing 81 posts, but obviously that wont work for long so idea here is

get the amount of pages there are from the metadata in the response
loop through that amount and fetch each page of posts
combine the responses in one array that will be returned to getStaticProps in a later diff

Test Plan:
review the functions and tests
npm run test

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D14105

Details

Provenance
johnkuneyAuthored on Jun 26 2023, 23:18
johnkuneyPushed on Jun 26 2023, 23:18
Reviewer
Restricted Project
Differential Revision
D14105: [e.cash] Get blog posts
Parents
rABC5dee5570b988: [alias-server] Clean up README as prep for documenting API endpoints
Branches
Unknown
Tags
Unknown