{"id":22783911,"url":"https://github.com/armingodiz/gitlab-api","last_synced_at":"2025-03-30T15:17:00.843Z","repository":{"id":76930274,"uuid":"389331953","full_name":"Armingodiz/gitlab-api","owner":"Armingodiz","description":"Simple application to interact with GitLab API","archived":false,"fork":false,"pushed_at":"2021-07-25T18:21:30.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T16:47:55.298Z","etag":null,"topics":["gin-gonic","gitlab-api","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Armingodiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-25T11:32:47.000Z","updated_at":"2021-07-26T06:13:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"2741b821-aded-42c6-a5cb-acc10c45005e","html_url":"https://github.com/Armingodiz/gitlab-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armingodiz%2Fgitlab-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armingodiz%2Fgitlab-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armingodiz%2Fgitlab-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Armingodiz%2Fgitlab-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Armingodiz","download_url":"https://codeload.github.com/Armingodiz/gitlab-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246334455,"owners_count":20760646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gin-gonic","gitlab-api","redis"],"created_at":"2024-12-11T22:09:45.694Z","updated_at":"2025-03-30T15:17:00.838Z","avatar_url":"https://github.com/Armingodiz.png","language":"Go","readme":"# gitlab-api\nSimple application to interact with gitlab api.\nThis app work with 2 kind of cache : 1) simple string-\u003e string map and 2) Redis,\nYou can chose which one to use.\n\n## Dependencies\n\nname     | repo\n------------- | -------------\n  go          | https://golang.org/doc/install \n   gin        | https://github.com/gin-gonic/gin\n  go redis    | https://github.com/go-redis/redis \n  docker      | https://www.docker.com/\n  \nYou must have [go](https://golang.org/doc/install) and [gin](https://github.com/gin-gonic/gin),\nFirst you need to install go and then you can run `go get https://github.com/gin-gonic/gin.git` to have gin.\n\nIf you want to use redis as cache you need [Docker](https://www.docker.com/) installed on your machine \nalso you need to run `go get https://github.com/go-redis/redis` too.\n\n \n## Usage\nIf you want to use redis as cache:\n\n[Run `docker run --name redis-usdb -p \"yourPort\":6379 -d redis` to connect redis to port \"yourPort\".\nSet cache_port in config.json to yourPort.]\n\n** default cache_port is -1 which show you want to use map as cache in your app.\n\nBuild and run **main.go** file(`go run main.go`) to start the app.\n\n(default port is 8080 but if this port of your system is busy you can change it in config.json(listener_port))\n\n## Endpoints\nbaseUrl: localhost:listener_port \n\n  `POST baseUrl/token ==\u003e to set your access token and userId body :{ userId: string, gitlabAccessToken: string }` \n  \n  `GET baseUrl/projects/:id/repository_tree ==\u003e get repository tree of project with id mentioned in request body and access token for user with userId set in request header with key as \u003cuserId\u003e`\n  \n  `GET baseUrl/ping ==\u003e simple get endpoint used for cloud to hit it and understand our web server is still running`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmingodiz%2Fgitlab-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmingodiz%2Fgitlab-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmingodiz%2Fgitlab-api/lists"}