website icon indicating copy to clipboard operation
website copied to clipboard

website: JSON object of content html for each zesty doc item

Open giseleblair opened this issue 1 year ago • 5 comments

Feature Description

https://docs.google.com/document/d/18AN134VADTj5xZk464YvNnZQSe3ORP04ifMdUnNaKAs/edit?usp=sharing

Additional Context (optional)

Please save locally and send to me

giseleblair avatar Nov 29 '23 13:11 giseleblair

needs to output with html tags like this: example output data: https://kfg6bckb-dev.webengine.zesty.io/-/instant/7-a4f6c6bdc5-kkztvh.json take a look at the "article" object

giseleblair avatar Dec 01 '23 14:12 giseleblair

  • iterate through each item under model 6-e092db91a5-rgfcx2
  • make a GET request to the item
  • get the body of the response and map the corresponding item zuid from the exported json
  • make a POST request to the item with the previous response body and adding the "content" object from the exported json
  • Publish the item

giseleblair avatar Dec 05 '23 17:12 giseleblair

Requests can be found here: https://instances-api.zesty.org/

Instance ZUID: 8-aaeffee09b-7w6v22

After making the updates to each item, rather than individual publishes, just use the following cloud function to publish all of the model's items: https://instances-api.zesty.org/#c3ae5072-dac0-4f1a-ac8e-13c0bc2440d2

giseleblair avatar Dec 05 '23 17:12 giseleblair

https://8-aaeffee09b-7w6v22.api.dev.zesty.io/v1/content/models/6-e092db91a5-rgfcx2/items

https://github.com/zesty-io/website/assets/71545960/fd7aa6eb-c806-46ae-afca-3c1896eb53f5

Dev

image

darwin808 avatar Dec 07 '23 03:12 darwin808

@darwin808 please update the dev environment of the docs to display the "content" object rather than the markdown

giseleblair avatar Dec 11 '23 13:12 giseleblair