GithubHelp home page GithubHelp logo

docs-api's Introduction

gogs-brand

GitHub Workflow Status Discord Sourcegraph

简体中文

🔮 Vision

The Gogs (/gɑgz/) project aims to build a simple, stable and extensible self-hosted Git service that can be set up in the most painless way. With Go, this can be done with an independent binary distribution across all platforms that Go supports, including Linux, macOS, Windows and ARM-based systems.

📡 Overview

💌 Features

  • User dashboard, user profile and activity timeline.
  • Access repositories via SSH, HTTP and HTTPS protocols.
  • User, organization and repository management.
  • Repository and organization webhooks, including Slack, Discord and Dingtalk.
  • Repository Git hooks, deploy keys and Git LFS.
  • Repository issues, pull requests, wiki, protected branches and collaboration.
  • Migrate and mirror repositories with wiki from other code hosts.
  • Web editor for quick editing repository files and wiki.
  • Jupyter Notebook and PDF rendering.
  • Authentication via SMTP, LDAP, reverse proxy, GitHub.com and GitHub Enterprise with 2FA.
  • Customize HTML templates, static files and many others.
  • Rich database backend, including PostgreSQL, MySQL, SQLite3 and TiDB.
  • Have localization over 31 languages.

💾 Hardware requirements

  • A Raspberry Pi or $5 Digital Ocean Droplet is more than enough to get you started. Some even use 64MB RAM Docker CaaS.
  • 2 CPU cores and 512MB RAM would be the baseline for teamwork.
  • Increase CPU cores when your team size gets significantly larger, memory footprint remains low.

💻 Browser support

  • Please see Semantic UI for specific versions of supported browsers.
  • The smallest resolution officially supported is 1024*768, however the UI may still look right in smaller resolutions, but no promises or fixes.

📜 Installation

Make sure you install the prerequisites first.

There are 6 ways to install Gogs:

Deploy to cloud

Tutorials

📦 Software, service and product support

🙇‍♂️ Acknowledgments

This project is proundly supported by:

Other acknowledgments:

  • Thanks Egon Elbre for designing the original version of the logo.
  • Thanks Crowdin for sponsoring open source translation plan.
  • Thanks MonoVM for sponsoring VPS services.
  • Thanks Buildkite for sponsoring open source CI/CD plan.

👋 Contributors

⚖️ License

This project is under the MIT License. See the LICENSE file for the full license text.

docs-api's People

Contributors

achilleas-k avatar bharatnc avatar bibo38 avatar grogorick avatar pyxide avatar ruianderson avatar unknwon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs-api's Issues

can not curl releases api

when call release api return 404 page.

I hopo get releases lists for repos.

the error result like the pic
image

use this config can get branch as well.

Looking to publish release through Http request from Jenkins

Hi,

Looking to have jenkins publish a release after the build and test complete, I see the http command from the github api, but not from gogs.

Is this something that is implemented, but not with docs? Is there another way to achieve this goal besides http requests?

Thanks!

Error creating token

$ curl -X PORT -u USER:PASSWD --data '{"name":"USER"}' https://try.gogs.io/api/v1/users/rbranco/tokens
template: base/footer:15:47: executing "base/footer" at <.PageStartTime>: invalid value; expected time.Time

Prohibit login parameter

Method: Edit an existing user PATCH /admin/users/:username
Add optional parameter for login prohibit prohibit_login: bool

/repos/search api returns fewer responses than the "Explore" section

The official Gogs v1 /repos/search API seems to be returning fewer responses when compared to the "Explore" section.

For example:

So is there any implicit difference between these routes or is it a bug?

/api/v1/ get 404

Gogs Version: 0.11.86.0130
When I try to use rest api from gogs, I cannot use the api. the url : http://{my gogs domain}/api/v1/ got 404 error. Should I enable this feature in somewhere?

Git Trees API without path parameter!

Git Trees

param:
    owner
    repo
    sha(ref)

GET /repos/:owner/:repo/git/trees/:sha

The API only get root dir. but the sub directory can not get tree list. Here is github api:

param:
    owner
    repo
    ref
    path

https://api.github.com/repos/${owner}/${repo}/git/trees/${ref}${path.replace(/^\//, ':')}

it can not get a sub-tree.

API returns Unauthorized on some endpoints

when trying to retrieve a list of available repositories for the authenticated Users, the API returns
(I've just removed the real address to avoid issues, but of course the host isn't localhost)

401: Unauthorized
r = requests.get('https://localhost/api/v1/repos/search?q=test&uid=1', auth=a, verify=False)
r
<Response [200]>
r.json()
{u'ok': True, u'data': [{u'website': u'', u'forks_count': 0, u'updated_at': u'2020-04-24T09:27:50Z', u'private': True, ...

r = requests.get('https://localhost/api/v1/user/repos', auth=a, verify=False)
r
<Response [401]>
r.reason
'Unauthorized'

I'm running mixed User configurations with LDAP connected, might this be an issue ? (naa just tried it with a local created user as well ... fails)
Fetched the latest container today with following informations

0.12.0+dev
Git-Version
2.24.1
Go-Version
go1.14.2
Build-Zeit
2020-04-21 10:12:22 UTC
Build-Commit
4e1f38ce28e87ece15a29c1f0fa2d7b5eeef79a6

Image header
"Created": "2020-04-21T10:22:42.165889729Z",
"Id": "sha256:e69e22eb6cdaed593a443876d5ec766a885637d2678a24c93c833920b5eb80a3"

About basic authentication.

hi
i wan to create a access key ,
but response is 401 mean not authority.
i know u have written notes
Create a access token requires that you are authenticated via basic authentication.

how can i do it?
i use postman.

thank u very much!

Have some questions about using API ...

Hello! i'm looking around community where i can ask a question, but i didn't find..
maybe this page is available to asking.. if I did a mistake, please forgive me.
and sorry for my bad english!! i will study english more..

by the way, I'm checking gogs for managing our projects!

We need to have access control function for each git repository,
and we thought gogs is perfect answer.

for more efficiency, we are going to make automatic access control system for gogs, by using docs-api. I'm planning to make each repository will have read access team, read+wirte access team automatically.

this is my first time to using RESTful API, but some of api didn't working ..

by the CURL.EXE, i successfully used POST and GET method. for example, create a new repository, create a organization, team, list up all repositories, ... etc.

worked command::
curl -H "Content-Type: application/json" -H "Authorization: token 49289d2cbe69b8dcbc74cdbfa77a52c319ad31fe" -d "{""name"": ""newrepo"", ""private"": true}" -XPOST "http://localhost:3000/api/v1/admin/users/myeonghun.noh/repos"

but I failed for PUT method.. it didn't worked and I can't find its problem and knowing someone..

failed command::
curl -H "Content-Type: application/json" -H "Authorization: token 49289d2cbe69b8dcbc74cdbfa77a52c319ad31fe" -X PUT "http://localhost:3000/api/v1/admin/orgs/CDE-6666/teams/SW-1111-read/members/myeonghun.noh"

please help me.. T_T

/repos/xxx/hooks binding check error

gogs version: 0.14.0+dev

when calling with

curl -X POST -H "Content-Type: application/json" -d @test.json http://xxx/api/v1/repos/xxx/test/hooks?token=xxx

while test.json :

{
  "type": "gogs",
  "config": {
    "content_type": "json",
    "url": "http://xxx/hook"
  },
  "events": [
    "push"
  ],
  "active": true
}

it responses:

[
  {
    "fieldNames": [
      "Type"
    ],
    "classification": "RequiredError",
    "message": "Required"
  },
  {
    "fieldNames": [
      "Config"
    ],
    "classification": "RequiredError",
    "message": "Required"
  }
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.