You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/tools_man/ngcp-api-post.1

52 lines
966 B

.TH NGCP-API-POST 1
.SH NAME
ngcp-api-post \- sends a post request to NGCP REST API
.SH SYNOPSIS
.B ngcp-api-post
[\fB\-f\fR \fIFILEPATH\fR]
[\fB\-v\fR]
[\fB\-h\fR]
.I URL
.RI [ CONTENT-TYPE ]
.SH DESCRIPTION
.B ngcp-api-post
sends a post request to NGCP REST API.
.SH OPTIONS
.TP
.BI \-f " FILEPATH"
Use
.I FILEPATH
as input file instead of stdin.
.TP
.B \-v
Verbose mode.
.TP
.B \-h
Print usage.
.TP
.I URL
URL for the request.
.TP
.I CONTENT-TYPE
Specifies the HTTP content-type.
The default is
.RI ' application/json '.
.SH EXAMPLES
.EX
$ echo '{ "domain" : "test", "reseller_id" : 4 }' \\
| ngcp-api-post https://127.0.0.1:1443/api/domains/
.EE
.PP
.EX
$ ngcp-api-post -f ../test_post.txt https://127.0.0.1:1443/api/domains/ 'application/json'
.EE
.SH SEE ALSO
.BR ngcp-api-get (1),
.BR ngcp-api-put (1),
.BR ngcp-api-patch (1),
.BR ngcp-api-delete (1).
.PP
https://ngcp-server.domain:1443/api
.SH COPYRIGHT
2014 Sipwise Development Team <support@sipwise.com>