Closed Bug 1515679 Opened 2 years ago Closed 2 years ago
Add test data / initial dev tools for testing / developing pocket layouts
We'd like to be able to easily develop on the layout/component system so having some locally available data would be beneficial.
It was mentioned today that there's a gist being passed around to do this in the interim. What's the URL for that?
https://gist.githubusercontent.com/ScottDowne/164995d9535b4203846048bdee29d169/raw/0cf538411e6ee898eb116208d70842c62c8d52f1/spoc.json from https://github.com/mozilla/activity-stream/pull/4596#issuecomment-448373096
We should switch over to the actual API ASAP. The gist schema is slightly outdated now... https://firefox-mathijs.dev.readitlater.com/v3/home/layout?version=1&consumer_key=40249-e88c401e1b1f2242d9e441c4
Hmm...looks like that's down. Mathijs, what URL is the endpoint at now?
I was using my staging server briefly for something else on Friday and switched back to this branch when done. Sorry for the interruption. I'll deploy to production today.
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.
Assignee: nobody → khudson
Iteration: --- → 66.3 - Jan 7 - 20
Priority: -- → P1
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.