Skip to content

Commit edd0e06

Browse files
committed
Minor configuration improvement
1 parent 4ca4dd2 commit edd0e06

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

rest-api/v1/curl/testproject/createTestProject.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/sh
1+
#!/bin/bash
22
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
33
# -i include headers
44
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
@@ -10,4 +10,9 @@
1010
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
1111
#
1212
echo 'Testing TestLink REST API - POST /testprojects'
13-
curl -i -H "Content-Type: application/json" -X POST --data "@../json/createTestProject.json" -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
13+
TURL="http://localhost/development/github/testlink-code";
14+
TURL="$TURL/lib/api/rest/v2/testprojects"
15+
# AUTH="restapi-leader:dev01"
16+
AUTH="restapi-admin:fruta"
17+
18+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/createTestProject.json" -u $AUTH $TURL

0 commit comments

Comments
 (0)