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
76e8b82d
Commit
76e8b82d
authored
Jun 20, 2018
by
Henrik Hüttemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct cURL syntax
parent
7a633e08
Changes
1
Hide 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 @
76e8b82d
...
@@ -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