-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api for creating repos files #4762
Comments
In my local gitea repo I have added extra api routes to create/edit/retrieve individual repo files. My use case is to create/edit plain text repo files through API, and all payloads are currently in JSON format. If other people have needs for this feature I will work with other developers to make the code useful to a wider audience, and prepare a pull request. I guess the payload may need to be base64 encoded to handle binary file format and meta data. What formats do you need to support? What information do you need in the response? |
I am working on creating a python script to make a api call to push my Ipython notebooks to git , as current api calls doesn't support a api call similar to 'https://api.github.com/repos/%s/%s/contents/' % (owner, repo) Is there a possibility in near future to add that ? Also anyone tried a direct integration of gitea with jupyter for pushing notebooks ? as few projects currently available making direct github api call in the backend we were not able to use remote git url |
@vishnuravi3186 Making changes is much much harder than I thought, no matter how minor it is, or how well it has been thought of to keep backward compatible. The API routes are major changes and require modification of the git implementation in the vendor folder. I don't think it will be available in the near future. I have just noticed gogs has recently added support for api routes and has integration with jupyter. API was not there the last time I checked gogs repo. You might want to consider gogs? |
@beeonthego thanks, we need support base64 format for time time being. |
@beeonthego Thanks for your response will give a try with gogs and let you know. |
Hi! We are looking for the same feature on our project. Thanks, |
I think it should not be too hard since Gitea UI support create text file, edit file, delete file. But currently no people are working on this. |
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. |
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. |
I think this has been implemented by #6314 in v1.9.0. Let's close this! |
Description
Our projects need the apis for creating and updating repos files. would you add these apis? thanks.
Github and gitlab have full features restful api for repos file. it will be better for gitea to support repos file interface.
The text was updated successfully, but these errors were encountered: