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

index user if not existed and log last active time for user accessing apis via backend apps #227

Closed ztsai closed 3 years ago

ztsai commented 3 years ago

closes #220

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-2.09%) to 85.947% when pulling c584d5b3a183e21a6fc5074433ee322d835c5b7a on backendUsers into c678c946517685dd8b0a6764a0bd9af295a71def on master.

ztsai commented 3 years ago

frontend users are tested with logging in from development frontend, and backend users are tested with

curl "http://localhost:5000/graphql?userId=$USERID" -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: http://localhost:5000' -H "x-app-secret:$SECRET" --data-binary '{"query":"query {\n  GetUser{\n  \tid\n  \tname\n    avatarUrl\n    level\n  }\n}"}' --compressed