Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIs for project creation/update for a DIY Experiments tool #1035

Open
madprime opened this issue Apr 23, 2019 · 0 comments
Open

APIs for project creation/update for a DIY Experiments tool #1035

madprime opened this issue Apr 23, 2019 · 0 comments

Comments

@madprime
Copy link
Member

madprime commented Apr 23, 2019

Description

To enable another app to make it easy for people to create and share and run projects, we'd like API endpoints for automating project creation and updates.

This is expected to only work with OAuth2 authorization (i.e. the creation of projects is being done by a project).

It's expected to receive the following:

  • project name
  • long description
  • redirect_url
  • coordinator_join (default=False)
  • diy_experiment (default=False)

The user identified by the OAuth2 authorization access token becomes the new project coordinator.

If coordinator_join is True, we'd like the coordinator to be added as a project member.

If diy_experiment is True, we'd like the project that's created to have a new diy_experiment boolean field that's set to True.

The API then returns:

  • client ID
  • client secret
  • coordinator access token (if coordinator_join was true)
  • coordinator refresh token (if coordinator_join was true)

There should also be an update endpoint that can be used to update the name, description, and/or redirect URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant