cofacts / rumors-api

GraphQL API server for clients like rumors-site and rumors-line-bot
https://api.cofacts.tw
MIT License
109 stars 26 forks source link

Add consent check to ensure all developers agree with TOS #240

Closed MrOrz closed 3 years ago

MrOrz commented 3 years ago

In order to perform license change, we are adding a custom HTTP header to ensure all API users acknowledge the license change.

If LICENSE_URL is provided, it will look like this: image

After LICENSE_URL is set, not giving x-accept-license header will receive: image

Only after providing correct x-accept-license can users use the API: image

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.2%) to 86.249% when pulling c774ffd796cb91badd6632beb31a4088c38e632c on cc-by into 5632c4532c11b30dd160c4dfab9adea500250d3c on master.