Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008965TestLinkAPI - RESTpublic2020-07-19 18:302020-07-27 08:58
ReporterEnriqueGHM 
Assigned Tofman 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.9.20 
Fixed in Version 
Summary0008965: I can not locate any API - REST resources, I always get the response 404 Not Found.
DescriptionI try locating resources such as /lib/api/rest/v1/testprojects (tried in v1 and v2)
The URL I am using is exactly "http://localhost/testlink/lib/api/rest/v1/testprojects" [^]
But I have tried with:
-http://localhost/lib/api/rest/v1/testprojects [^]
-http://127.0.0.1:81/testlink/lib/api/rest/v1/testprojects [^]
-http://127.0.0.1:81/lib/api/rest/v1/testprojects [^]
and many other posible variations just in case I was not doing it properly.

Always used the header APIKEY with my user API access key (also tried with the project API key) or putting the API key on the username part with a basic authentication.

I used as API client Postman and RESTClient addon for firefox.

I have been looking in posted issues and the internet in general for a clue of what could be happening but can't come to a response. I have reinstalled testlink a few times in case it was a installation problem.

Probably I am missing some configuration or I am not using the proper URL.
Steps To ReproduceSimply have send a GET request to the REST API with the URLs I set as examples
Additional InformationMy installation was done by Bitnami-testlink installer.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySql
BrowserFirefox, chrome and edge
PHP Version7.0
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0029833)
fman (administrator)
2020-07-22 10:14

Please give a look to the
github
Repository with the test,
You will find there examples
With cUrl.
The apikey is the user apikey
(0029834)
fman (administrator)
2020-07-22 10:18

It's better that you use code from
Github branch testlink_1_9_20_fixed
And php > 7.3
(0029851)
EnriqueGHM (reporter)
2020-07-27 08:20

I have changed the code for the one in testlink_1_9_20_fixed and updated my php version but I have the same problem.
Looking through the test I do not see crearly what should be the url I need to use. One of the examples has this url: http://localhost/development/github/testlink-code/lib/api/rest/v2/who [^]
I understand that "/lib/api/rest/v2/who" is fixed but how is build the "/developement/github/testlink-code" part.
My full directory is: C:\Bitnami\testlink-1.9.20-5\apps\testlink\htdocs\lib\api\rest\v2
(0029853)
fman (administrator)
2020-07-27 08:50

You need to use your URL
(0029855)
EnriqueGHM (reporter)
2020-07-27 08:58

My URL is "http://localhost:81/testlink/" [^]
I have already tried with this.
So now I guess my problem is related to the code I'm using or the installation. I will try to set it up properly and update with the solution I may find. Thank you.

- Issue History
Date Modified Username Field Change
2020-07-19 18:30 EnriqueGHM New Issue
2020-07-22 10:14 fman Note Added: 0029833
2020-07-22 10:18 fman Note Added: 0029834
2020-07-25 07:46 fman Assigned To => fman
2020-07-25 07:46 fman Status new => feedback
2020-07-27 08:20 EnriqueGHM Note Added: 0029851
2020-07-27 08:20 EnriqueGHM Status feedback => assigned
2020-07-27 08:50 fman Note Added: 0029853
2020-07-27 08:58 EnriqueGHM Note Added: 0029855



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker