Closed Bug 1515354 Opened 8 months ago Closed 8 months ago

Create layout endpoint

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 66

People

(Reporter: mathijs, Assigned: mathijs)

References

Details

Create /v3/home/layout to return layout json.
Assignee: nobody → mathijs
Blocks: 1514880
Status: NEW → ASSIGNED
Priority: -- → P2
Initial version of layout API is available on my staging server. Let me know if you want it to return a particular layout.
Repost from Slack:

Layout endpoint is live on our production server:
https://getpocket.com/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4

You can use Mozilla's CDN as we do for the current new-tab:
https://getpocket.cdn.mozilla.net/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4
Let me know if you want to test any particular layouts. Once the actual feed variants are defined by product, I'll add those too.

We're also hosting the endpoint definition (thanks for the idea @gvn!)
https://getpocket.com/v3/home/layout.yml
It's using the OpenAPI 3.0 syntax. The intent is to use this for automated tests, to validate that the schema. Let me know if you want to use it for some other purpose, in particular if you want to use it in production code, which I am assuming we won't do.
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.