add scripts for some restoring
This commit is contained in:
5
gitea-api.sh
Normal file
5
gitea-api.sh
Normal 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
|
Reference in New Issue
Block a user