mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
515 B
515 B
to-git-or-not-to-git-?
Instructions
Write in a file to-git-or-not-to-git.sh
the command that isolates your Gitea id
.
Only the numbers will appear.
Local API documentation: https://git.01.alem.school/api/swagger
Here is the base command that needs to be adapted with your username and more :
curl -s https://01.alem.school/api/graphql-engine/v1/graphql --data '{"query":"{user(where:{githubLogin:{_eq:\"choumi\"}}){id}}"}'
Usage
$ ./to-git-or-not-to-git.sh
231748
$
`