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

Added personal access endpoint to API #11416

Merged
merged 13 commits into from
Jun 29, 2022
Merged

Conversation

snipe
Copy link
Owner

@snipe snipe commented Jun 29, 2022

This needs testing! Go to /api/v1/account/personal-access-token via cURL or postman. This also includes a console script that allows you to create API tokens on behalf of users.

php artisan snipeit:make-api-key --help
php artisan snipeit:make-api-key --user_id=1 --key-only
php artisan snipeit:make-api-key --user_id=1
php artisan snipeit:make-api-key --user_id=1 > api.txt

Screen Shot 2022-06-28 at 10 27 26 PM

Signed-off-by: snipe <snipe@snipe.net>
snipe added 12 commits June 28, 2022 21:32
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
Copy link
Collaborator

@uberbrady uberbrady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Anyone who’s doing any kind of automated deploymens of Snipe-IT is gonna love it :)

@snipe snipe merged commit bb7662a into develop Jun 29, 2022
@snipe snipe deleted the features/personal_access_endpoint branch June 29, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants