Open bacharakis opened 5 years ago
We already have a client library to send requests to the GitHub API using GraphQL (https://github.com/shurcooL/githubv4). So we need something similar for GitLab API. Unfortunately there is no such library for GitLab. Therefore we are going to use the classic GitLab RESTful API (https://docs.gitlab.com/ee/api/README.html).
When GitLab GraphQL API becomes available we can replace the specialized version of the client library, targeting only GitHub, with the universal version: https://github.com/shurcooL/graphql. In this way we can call both APIs in a similar way using just one universal GraphQL library. Furthermore, the current source code is expandable because the new library is just the generalization of the old. Only few changes are needed.
The changes can be viewed here: https://github.com/kounelisagis/fixme_backend/tree/gitlab