drodil / backstage-plugin-qeta

Backstage.io plugin for Q&A
https://www.npmjs.com/package/@drodil/backstage-plugin-qeta
MIT License
81 stars 25 forks source link

feat: allow service-to-service requests for marking answers correct #172

Closed raphtalia closed 1 month ago

raphtalia commented 2 months ago

I'm currently importing questions from Stackoverflow to Qeta but my script is unable to mark answers correct unless I supply a user token.

drodil commented 1 month ago

I am making a fix for this so that service tokens can be used to mark correct answers. Also, it's possible to add votes with a service token and use the query parameter ?score=10 with the /questions/:id/answers/:answerId/upvote path.