Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giseleblair opened this issue Nov 29, 2023 · 5 comments
Open

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

giseleblair opened this issue Nov 29, 2023 · 5 comments
Assignees

Comments

@giseleblair
Copy link
Collaborator

Feature Description

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

Additional Context (optional)

Please save locally and send to me
@darwin808 darwin808 changed the title JSON object of content html for each zesty doc item website: JSON object of content html for each zesty doc item Nov 30, 2023
@giseleblair
Copy link
Collaborator Author

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
Copy link
Collaborator Author

  • 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
Copy link
Collaborator Author

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

darwin808 pushed a commit that referenced this issue Dec 7, 2023
@darwin808
Copy link
Collaborator

darwin808 commented Dec 7, 2023

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

Screen.Recording.2023-12-07.at.11.46.34.AM.mov

Dev

image

@giseleblair
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants