Zapi API and how to authenticate

David Ramer January 16, 2014

How to authenticate when using zapi API? I want to build a java factory to update/build test suites in my jira repository.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
David Ramer June 4, 2016

I found this on the web:  https://support.getzephyr.com/hc/en-us/articles/203138265-API-Sample-Create-Testcase-in-TCC-Java-

 

 

But it does not have example of authentication.

 

There has to be examples in java how to use ZAPI API

0 votes
Daniel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2014

Hi David,

ZAPI requires that all requests overcome a permissions challenge in order to work. This requires every request using ZAPI to include authentication. The easiest ways to do this would be through 'Basic' authorization, seen on JIRA's documentation here:

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Basic+Authentication

You can also try OAuth (token based). JIRA includes an example of this here:

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+OAuth+authentication

ZAPI Python examples of using 'Basic' authorization can be found on our community forum here:

http://community.yourzephyr.com/viewforum.php?f=21

Regards,

Daniel

TAGS
AUG Leaders

Atlassian Community Events