Skip to content

API Authorization for PUT, POST, and PATCH requests #40

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

erinspace
Copy link

Add API token header auth for interactive use of the API!

screen shot 2017-02-23 at 5 29 07 pm

  • Update swagger.yaml to include API header auth
  • Also include a link to where to set your token
  • Template updates to show auth info where appropriate
  • Clear and reset the token from the sidebar
  • CSS and style updates
  • helper function to compare the type of request and if you have a key
    or not

future improvements:

  • simply disable the "TRY" button with no key, don't hide the form entirely
  • add a note in the base route that the return value will change if you provide authorization

- Update swagger.yaml to include API header auth
- Also include a link to where to set your token
- Template updates to show auth info where appropriate
- Clear and reset the token from the sidebar
- CSS and style updates
- helper function to compare the type of request and if you have a key
or not

future improvements:
- simply disable the "TRY" button with no key, don't hide the form
entirely
pattisdr pushed a commit to pattisdr/developer.osf.io that referenced this pull request May 8, 2019
…-institutions

Add institution assets to api docs
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

Successfully merging this pull request may close these issues.

1 participant