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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
f7b59b9f
Commit
f7b59b9f
authored
Jun 20, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docs/correct-curl-syntax' into 'master'
Correct cURL syntax See merge request gitlab-org/gitlab-ce!20014
parents
7a633e08
76e8b82d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/api/pages_domains.md
doc/api/pages_domains.md
+4
-4
No files found.
doc/api/pages_domains.md
View file @
f7b59b9f
...
@@ -122,11 +122,11 @@ POST /projects/:id/pages/domains
...
@@ -122,11 +122,11 @@ POST /projects/:id/pages/domains
|
`key`
| file/string | no | The certificate key in PEM format. |
|
`key`
| file/string | no | The certificate key in PEM format. |
```
bash
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
=
"domain=ssl.domain.example"
--form
=
"certificate=@/path/to/cert.pem"
--form
=
"key=@/path/to/key.pem"
https://gitlab.example.com/api/v4/projects/5/pages/domains
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
"domain=ssl.domain.example"
--form
"certificate=@/path/to/cert.pem"
--form
"key=@/path/to/key.pem"
https://gitlab.example.com/api/v4/projects/5/pages/domains
```
```
```
bash
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
=
"domain=ssl.domain.example"
--form
=
"certificate=
$CERT_PEM
"
--form
=
"key=
$KEY_PEM
"
https://gitlab.example.com/api/v4/projects/5/pages/domains
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
"domain=ssl.domain.example"
--form
"certificate=
$CERT_PEM
"
--form
"key=
$KEY_PEM
"
https://gitlab.example.com/api/v4/projects/5/pages/domains
```
```
```
json
```
json
...
@@ -158,11 +158,11 @@ PUT /projects/:id/pages/domains/:domain
...
@@ -158,11 +158,11 @@ PUT /projects/:id/pages/domains/:domain
|
`key`
| file/string | no | The certificate key in PEM format. |
|
`key`
| file/string | no | The certificate key in PEM format. |
```
bash
```
bash
curl
--request
PUT
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
=
"certificate=@/path/to/cert.pem"
--form
=
"key=@/path/to/key.pem"
https://gitlab.example.com/api/v4/projects/5/pages/domains/ssl.domain.example
curl
--request
PUT
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
"certificate=@/path/to/cert.pem"
--form
"key=@/path/to/key.pem"
https://gitlab.example.com/api/v4/projects/5/pages/domains/ssl.domain.example
```
```
```
bash
```
bash
curl
--request
PUT
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
=
"certificate=
$CERT_PEM
"
--form
=
"key=
$KEY_PEM
"
https://gitlab.example.com/api/v4/projects/5/pages/domains/ssl.domain.example
curl
--request
PUT
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
--form
"certificate=
$CERT_PEM
"
--form
"key=
$KEY_PEM
"
https://gitlab.example.com/api/v4/projects/5/pages/domains/ssl.domain.example
```
```
```
json
```
json
...
...
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