Gitea: GraphQL Api

Created on 22 Sep 2019  路  9Comments  路  Source: go-gitea/gitea

Github also offers a graphql version of the api.
Would it be possible to consider adding a graphql module on top of the current api?

Thx

kinapi kinfeature revieweconfirmed

Most helpful comment

Just FYI I'm working on a small proof of concept. I don't have any prior experience with graphql but I hope to maybe submit a draft pr just for feeback in a few weeks or so

All 9 comments

Is this a draft or important to you?

Reading Github blog about it, it sounds like they will mainly continue developing the GraphQL API in the future, and v3 api only for backwards compatibility?

It was suggested in the roadmap issue to use API more for rendering on website (with js/ajax). From what they write, it seems GraphQL might be an advantage for that?

Is this a draft or important to you?

@6543 , it's not a draft, it's important to me. Since I want to have action through API to handle Gitea and because I mainly use graphql, I currently make a graphql wrapper around the REST api. Having it done from Gitea will be a huge help for me.

Also, as @davidsvantesson suggest, Github offer an GraphQL api so why not Gitea :p?

@DblK we should have, only needs some contribution. 馃槄

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

Here is the list of go graphql frameworks maintained by graphql.org, https://graphql.org/code/#go.

Just FYI I'm working on a small proof of concept. I don't have any prior experience with graphql but I hope to maybe submit a draft pr just for feeback in a few weeks or so

I created a PR for a modest POC and wanted to get feedback before moving forward: https://github.com/go-gitea/gitea/pull/12285. There's some screenshots on the PR too.

Was this page helpful?
0 / 5 - 0 ratings