Skip to content

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

Open
erinspace wants to merge 3 commits into
cos-archives:masterfrom
erinspace:feature/api_key
Open

API Authorization for PUT, POST, and PATCH requests#40
erinspace wants to merge 3 commits into
cos-archives:masterfrom
erinspace:feature/api_key

Conversation

@erinspace

Copy link
Copy Markdown

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