add scripts for some restoring

This commit is contained in:
2023-07-24 01:57:30 -06:00
parent 809e4d1215
commit 37aa4e3899
2 changed files with 39 additions and 0 deletions

5
gitea-api.sh Normal file
View File

@ -0,0 +1,5 @@
# Create a token
curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "scopes": ["write:user","write:repository","write:organization"]}' -u payne8:***password*** https://git.sa.vin/api/v1/users/payne8/tokens
# Delete a token
curl -X DELETE -H "Content-Type: application/json" -u payne8:***password*** https://git.sa.vin/api/v1/users/payne8/tokens/test