I have installed gitea 1.9.6 64bit on Windows Server 2012 R2.
- I created the sqlite database like the documentation says.
- Created the folders, data, custom, lfs, log.
- I have gone through the setup. I can create organizations, repos in the organizations, push files, pull files, etc.
- LDAP is binding to Active Directory
But when I go to /api/swagger to see the documentation, I am getting a blank page. F12 tells me that the page is trying to load swagger.v1.json. And if I change the url to that, the browser downloads that file, and the contents look like the content at https://try.gitea.io/api/swagger.
If I use curl to try to call one of the APIs, I am getting this response:
I created a token under my user and have included the token with -H “Authorization: token abcd…”
I have the ini file section [api] set with ENABLE_SWAGGER = true. I also see the documentation saying that I shouldn’t need that setting because it defaults to true.
I am stumped as the next step to enable the REST API.