Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3545ceb0
Commit
3545ceb0
authored
Jan 11, 2018
by
Sascha Szott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply documentation changes from EE to CE
parent
c90fcf1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
doc/api/snippets.md
doc/api/snippets.md
+10
-2
No files found.
doc/api/snippets.md
View file @
3545ceb0
...
...
@@ -84,7 +84,11 @@ Parameters:
```
bash
curl
--request
POST
--data
'{"title": "This is a snippet", "content": "Hello world", "description": "Hello World snippet", "file_name": "test.txt", "visibility": "internal" }'
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/snippets
curl
--request
POST
\
--data
'{"title": "This is a snippet", "content": "Hello world", "description": "Hello World snippet", "file_name": "test.txt", "visibility": "internal" }'
\
--header
'Content-Type: application/json'
\
--header
"PRIVATE-TOKEN: valid_api_token"
\
https://gitlab.example.com/api/v4/snippets
```
Example response:
...
...
@@ -131,7 +135,11 @@ Parameters:
```
bash
curl
--request
PUT
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--data
'{"title": "foo", "content": "bar"}'
https://gitlab.example.com/api/v4/snippets/1
curl
--request
PUT
\
--data
'{"title": "foo", "content": "bar"}'
\
--header
'Content-Type: application/json'
\
--header
"PRIVATE-TOKEN: valid_api_token"
\
https://gitlab.example.com/api/v4/snippets/1
```
Example response:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment