API Get Contents

Hello Guys,

I have problems creating an functional get contents-command for the API on my own server.
My own server is running on Gogs-version
I tried doing the similar thing getting all contents of a repository as written in the documentation. The documentation shows that you have to use /repos/:username/:reponame/contents/:path.
When I recreate the same repo on the try.gogs.io server as I have on my own server this link (token removed) works:
but when I do the same for my own server:
it does not work and I get a 404.

What am I doing wrong?

Hi, sorry about confusion! This this endpoint currently only available in master branch.

Hy Unknown,
thanks for the fast answer!
Is there any chance of saying when it will approximately be in a Release?

Hmm, it’s hard to say, there are many things want to get into next release, so at least not anytime soon in 2 months?

Okay, I see. Thank you for your fast response and the constant improvement of the palttform!
I will be loooking forward to the next release :smiley:

1 Like