Skip to content

Commit 4ca4dd2

Browse files
committed
new examples
1 parent e9d52e6 commit 4ca4dd2

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 - GET /testprojects/94/testcases'
13+
curl -i -X GET -u admin:noway http://localhost/development/test_tl/testlink/lib/api/rest/v1/testprojects/FLOWER/testcases
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 - GET /testprojects/94/testplans'
13+
curl -i -X GET -u admin:noway http://localhost/development/test_tl/testlink/lib/api/rest/v1/testprojects/FLOWER/testplans

0 commit comments

Comments
 (0)