jjcm / nonio

107 stars 1 forks source link

API "content" Issue #130

Open MaximilianEmel opened 1 year ago

MaximilianEmel commented 1 year ago

In its current state, the API does not work as documented; anything in the "content" parts seems to need to have some other stuff around it. e.g. This works, but if one removed the "ops" and "insert" stuff, it doesn't work. $ curl -v -X POST https://api.non.io/comment/create -H "Authorization: Bearer <TOKEN>" -H 'Content-Type: application/json' --data-raw '{"post":"<POST_URL>","content":"{\"ops\":[{\"insert\":\"<CONTENT>\\n\"}]}"}'