Open samqi opened 11 months ago
Only org works ok (filename ex: foe-km-org-sinarproject-org-orgname.json) :
{
"title": "orgnamehere",
"@type": "Organization",
"description": "org is a org doing org things",
"text": {
"content-type": "text/html",
"data": "<p>This org focuses on X issues etc.</p>",
"encoding": "utf-8"
},
"organization_type": {
"title": "Civil Society",
"token": "cso"
},
"countries": [
{
"title": "Malaysia",
"token": "458"
}
]
}
Added and tested working via curl via local partners folder URL
curl -i -X POST https://foe-km.sinarproject.org/partners/local-partners -H "Accept: application/json" -H "Content-Type: application/json" -d @foe-km-org-sinarproject-org-orgname.json --user myusername:mypassword
JSON errors encountered when adding project activity, events, resources into folders for now mostly with TypeError: NoneType Object Is Not Iterable
, presumably related to some new items not returning json properly
Is your feature request related to a problem? Please describe. manual adding of content via web interface is easy, but takes a long time.
Describe the solution you'd like json templates for the content types:
Describe alternatives you've considered basic content types documentation already are in plone restapi documentation for content types but custom content types are yet to be documented.
Additional context Probably need to update documentation for restapi for those content types too.
There are limitations to being able to access pull down so we cover basic use case only