Commit 5843f661 authored by Richard RANDRIATOAMANANA's avatar Richard RANDRIATOAMANANA 💬
Browse files

Update README.md

parent 2f7d5a11
...@@ -5,11 +5,18 @@ LICCIA basic installation of Ubuntu (18.04, 20.04) ...@@ -5,11 +5,18 @@ LICCIA basic installation of Ubuntu (18.04, 20.04)
## API ## API
```bash - first, copy-paste the variable token `api_read_token` in *Settings -> CI/CD -> Variables* and *expand* to see the list of variables.
curl -fsSL -XGET --header "PRIVATE-TOKEN: <api_read_token>" "https://gitlab.univ-nantes.fr/api/v4/projects/11617/repository/files/<file>/raw" - if you want to clone this repository, do
``` ```bash
git clone https://gitlab-ci-token:<paste_here_api_read_token>@gitlab.univ-nantes.fr/liccia/marketplace/<name_of_the_repo>.git
```
- if you just need to fetch a raw content of a file, do
```bash
curl -fsSL -XGET --header "PRIVATE-TOKEN: <paste_here_api_read_token>" "https://gitlab.univ-nantes.fr/api/v4/projects/<gitlab_code_project>/repository/files/<the_file_you_want_to_fetch>/raw"
```
- here the `gitlab_code_project` is `11617`
- be careful, the `the_file_you_want_to_fetch` filename should be in a [URI format](https://www.w3.org/Addressing/URL/uri-spec.html) that means characters like `spaces` should be replaced by `%20`, `/` by `%2F` and `-` by `%2D`
- copy-paste the `PRIVATE-TOKEN` variable `api_read_token` in *Settings -> CI/CD -> Variables* and *expand* to see the list of variables.
## Tools ## Tools
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment