I'm currently trying to write a little add-on for my IDE, so I can create snippets on my gitlab. I checked the API and it seems that it can create fragments related to the project using /api/v3/project/id/snippet and the corresponding POST parameters. However, I really do not want to associate fragments with a specific project, and in the web interface you can select "My fragments", and when you create a fragment, you do not need to bind it to the project. I wonder if there is an API for creating a fragment that is not related to the project, but rather to my account?
Also according to https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/project_snippets.md#create-new-snippet its impossible to select the fragment visibility, while in the web interface you can use private, public or internal. Is there anything else? Is the API deprecated? Thanks in advance.
source share