Skip to content

Commit fcd29ea

Browse files
committed
TICKET 5717: API - REST - testplans - POST
1 parent 24b409e commit fcd29ea

9 files changed

Lines changed: 74 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"active":1}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"active":0}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"notes":"What's up doc"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"is_public":0}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testplans'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/setTestPlanActive.json" \
14+
-u restadminapikey:thebrownfox http://localhost/development/tlrepo/lib/api/rest/v1/testplans/359
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testplans'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/setTestPlanInactive.json" \
14+
-u restadminapikey:thebrownfox http://localhost/development/tlrepo/lib/api/rest/v1/testplans/359
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testplans'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/setTestPlanNotes.json" \
14+
-u restadminapikey:thebrownfox http://localhost/development/tlrepo/lib/api/rest/v1/testplans/359
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testplans'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/setTestPlanPrivate.json" \
14+
-u restadminapikey:thebrownfox http://localhost/development/tlrepo/lib/api/rest/v1/testplans/359
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testplans'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/setTestPlanInactive.json" \
14+
-u restadminapikey:thebrownfox http://localhost/development/tlrepo/lib/api/rest/v1/testplans/359

0 commit comments

Comments
 (0)