WikidataComplete / Wikidata-Complete-Gadget

4 stars 5 forks source link

Reject an item [API] #10

Closed gabinguo closed 3 years ago

gabinguo commented 3 years ago
# one example to reject the fact (id: 3410)
curl -X POST \
  'https://qanswer-svc3.univ-st-etienne.fr/fact/correct?userCookie=c51f3c6f-ef1c-41ff-b1ca-7a994666b93e&factId=3410&correction=2' 

The API is used to reject an item. URL: https://qanswer-svc3.univ-st-etienne.fr/fact/correct POST HTTP REQUEST 3 query params: userCookie: c51f3c6f-ef1c-41ff-b1ca-7a994666b93e (String type) [Fixed] factId: The 'id' field you will get from the API of #8 (Integer type) correction: 2 (Integer type)

Dhairya3124 commented 3 years ago

https://qanswer-svc3.univ-st-etienne.fr/facts/get?qid=Q24034587&format=json

Can you tell how did the third fact got removed? Was it due to the above api?

Dhairya3124 commented 3 years ago

Fix : https://github.com/Dhairya3124/Wikidata-Recoin2/commit/1b0e26024089b9a50ec520d7cd372e4b4de4fb1b