WikidataComplete / wikidatacomplete-backend

apis for wikidatacomplete
MIT License
2 stars 1 forks source link

Open API: post sample json format to create new Fact #33

Closed lalit97 closed 2 years ago

lalit97 commented 2 years ago

There should be descriptive sample JSON in open API.

once sample JSON is written, test post API on local with it add default fields manually in API if needed for some fields, or set them in models for those fields.

once defaults are added, in views we do not have to add checks like this if feedback.value and feedback.value = None

and we can directly process like if feedback.value = None

lalit97 commented 2 years ago

close with #44