checkuponme / Spoke

Politics Rewired's fork of Spoke, now forked for CheckUpOn.Me.
GNU General Public License v3.0
5 stars 1 forks source link

Spoke Authenticated API Wrapper #12

Open TheRealAlexV opened 4 years ago

TheRealAlexV commented 4 years ago

We need a simple to use API wrapper in front of spoke to be able to sign up new users, organizations, campaigns(lists), and add to those lists. The API wrapper should be able to list all of the objects I mentioned as well as modify and delete. The API should be an authenticated API and support some form of READ vs WRITE permission roles.

Spoke currently uses GraphQL query language, so we should work off that existing solution to implement ours. This issue should first serve as discussion and suggestions on how to build this out.

You can see Spokes graphql structure by going to http://localhost:3000/graphql on your local env. You can also visit our dev-spoke's graphql playground: https://dev-spoke.checkupon.me/graphql

Learn more about GraphQL here: https://graphql.org/learn/ https://graphql.org/blog/rest-api-graphql-wrapper/ https://www.youtube.com/watch?v=omSpI1Nu_pg https://www.youtube.com/watch?v=HlA48QgIpEI