Skip to content
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

Closed
Xuntian opened this issue Aug 22, 2018 · 11 comments
Closed

api for creating repos files #4762

Xuntian opened this issue Aug 22, 2018 · 11 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Comments

@Xuntian
Copy link

Xuntian commented Aug 22, 2018

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.

@lafriks lafriks added type/feature Completely new functionality. Can only be merged if feature freeze is not active. modifies/api This PR adds API routes or modifies them labels Aug 22, 2018
@beeonthego
Copy link
Contributor

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?

@vishnuravi3186
Copy link

vishnuravi3186 commented Aug 29, 2018

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

@beeonthego
Copy link
Contributor

@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?

@Xuntian
Copy link
Author

Xuntian commented Sep 3, 2018

@beeonthego thanks, we need support base64 format for time time being.

@vishnuravi3186
Copy link

@beeonthego Thanks for your response will give a try with gogs and let you know.

@sbengo
Copy link

sbengo commented Oct 19, 2018

Hi!

We are looking for the same feature on our project.
Any short plans to implement this feature?

Thanks,
Regards!

@lunny
Copy link
Member

lunny commented Oct 19, 2018

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.

@stale
Copy link

stale bot commented Jan 6, 2019

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.

@stale stale bot added the issue/stale label Jan 6, 2019
@richmahn
Copy link
Contributor

richmahn commented Jan 25, 2019

I plan to work on this as we plan to be able to get a repo file listing (#5403 & #5838) and then get the file through the raw URL and then be able to edit and post it back via HTTP to the Git service. So just signalling intent to work on this.

@stale
Copy link

stale bot commented Mar 26, 2019

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.

@stale stale bot added the issue/stale label Mar 26, 2019
@lunny lunny added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented and removed issue/stale labels Mar 27, 2019
@lunny lunny added this to the 1.9.0 milestone Apr 16, 2019
@techknowlogick techknowlogick modified the milestones: 1.9.0, 1.10.0 Jun 17, 2019
@lunny
Copy link
Member

lunny commented Sep 15, 2019

I think this has been implemented by #6314 in v1.9.0. Let's close this!

@lunny lunny closed this as completed Sep 15, 2019
@lunny lunny removed this from the 1.10.0 milestone Sep 15, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

No branches or pull requests

8 participants