APIs returning 400 Bad Request - Klaros Test Management - Forum - Klaros-Testmanagement
APIs returning 400 Bad Request
Davide Pozzoli, geändert vor 1 Jahr.
APIs returning 400 Bad Request
Youngling Beiträge: 3 Beitrittsdatum: 23.12.22 Neueste Beiträge
Hi,
I was trying to use one of the API listed in https://www.klaros-testmanagement.com/files/api-doc/resources/, in particular the GET /api/v1/resources/projects/id/{id}/testSuites
Using the browser plugin as advised in the documentation I keep getting the 400 bad Request error code.
What am I missing ?
Thanks in advance
Davide
I was trying to use one of the API listed in https://www.klaros-testmanagement.com/files/api-doc/resources/, in particular the GET /api/v1/resources/projects/id/{id}/testSuites
Using the browser plugin as advised in the documentation I keep getting the 400 bad Request error code.
What am I missing ?
Thanks in advance
Davide
Torsten Stolpmann, geändert vor 1 Jahr.
RE: APIs returning 400 Bad Request
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hello Davide ,
did you provide a valid username and password in your basic authentication parameters (e.g. admin/admin)?
Please let me know if this resolves your problem.
Regards,
Torsten
did you provide a valid username and password in your basic authentication parameters (e.g. admin/admin)?
Please let me know if this resolves your problem.
Regards,
Torsten
Davide Pozzoli, geändert vor 1 Jahr.
RE: APIs returning 400 Bad Request
Youngling Beiträge: 3 Beitrittsdatum: 23.12.22 Neueste Beiträge
Hi Torsten,
In that case the error code becomes 404 Not Found. I don't have admin rights for the account that I'm using could it be a problem ?
Regards
Davide
In that case the error code becomes 404 Not Found. I don't have admin rights for the account that I'm using could it be a problem ?
Regards
Davide
Torsten Stolpmann, geändert vor 1 Jahr.
RE: APIs returning 400 Bad Request
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hello Davide,
there is another problem you are stumbeling about.
P00004 is a project name, not a project id. So for achieving what you are attempting, you must first get the project id for your project name, like this:
and then request the test suites like this:
Please let me know if this resolves your problem.
Best regards,
Torsten
there is another problem you are stumbeling about.
P00004 is a project name, not a project id. So for achieving what you are attempting, you must first get the project id for your project name, like this:
and then request the test suites like this:
Please let me know if this resolves your problem.
Best regards,
Torsten
Davide Pozzoli, geändert vor 1 Jahr.
RE: APIs returning 400 Bad Request
Youngling Beiträge: 3 Beitrittsdatum: 23.12.22 Neueste Beiträge
Thank you Torsten for the quick response, that indeed solved my problem.
Can I ask whether there is an API for deleting content from Klaros (like Test Suite or Test Case) ?
I looked throught the documentation and i wasn't able to find any reference
Regards,
Davide
Can I ask whether there is an API for deleting content from Klaros (like Test Suite or Test Case) ?
I looked throught the documentation and i wasn't able to find any reference
Regards,
Davide
Torsten Stolpmann, geändert vor 1 Jahr.
RE: APIs returning 400 Bad Request
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
The resource API is read-only at the moment. We do plan to extend it in the course of next year.
Regards,
Torsten
Regards,
Torsten