Java Rest Client for Jira Zephyr API? - java

is there a Java REST Client for JIRA Zephyr, similiar to the REST Java Client for JIRA? Another helpful approch would be a YAML-File or another kind of webservice description to generate a rest client from.
Thanks!

Are you using Jira server or Jira cloud?
If you are using Jira server, the answer to your question is yes: ZAPI
You can find it on the Atlassian Marketplace, it is an "add-on to Zephyr for JIRA allows access to its testing data programmatically via RESTful APIs"
If you are using Jira Cloud the answer is no. not yet.
The api access feature has been in the works for a long time, and even though their site says it is just released in beta, they pulled it. I have been talking with Zephyr tech reps about that all this last week.

Related

Java to JIRA data fetching

How can I fetch data from JIRA using Java?
What are the steps and ideas?
The program should automatically connect Jira and fetch data
Please help
There are multiple ways to access Jira and you need to differentiate between Jira Cloud and Jira Server (since you didn't specify which one you want to access).
Jira Cloud
Jira Cloud only offers a REST API to communicate. Have a look at the REST API docs (Supported authentication: Basic Auth, JWT, OAuth) or the get started guide to create your own app for Jira Cloud.
Jira Server
Jira Server offers a REST API (Supported authentication: Basic Auth) as well as a Java API to access data. There are also guides to get you started using the Java API by creating your own Jira app for Jira Server.

To correspond Global HTTP Batch Endpoint changes of Google Client API for Java

As google mentioned in "Discontinuing support for JSON-RPC and Global HTTP Batch Endpoints", Google API Client Libraries have been regenerated to no longer make requests to the global HTTP batch endpoint.
I am currently using the Google API Client Libraries for Java(v1.20.0) to create/modify/remove users and to grant/revoke roles to GSuite via Google Admin SDK and Batch.
I searched for the latest version on Github, but there was no new release after publishment of this article.
I'd like to know whether the latest version on Github (v1.23.0) includes the update in endpoint? (which means I can just simply update to v1.23.0 and use it instead of the current version I am using).
Regards,
In fact, yes, the update to API specific URLs was in v1.23.0. Make sure to update your google-api-services-* library versions too.

Using OAuth for Google App Engine Endpoints from third party servers

I have a Google App Engine application deployed which contains and manages user data. My users may want to share their personal data with third party sites. Think Garmin sharing running data with myfitness pal or Strava.
The google documentation is gives good examples for using endpoints with iOS, Android, and javascript based web apps. These examples use a client id but not a "client secret" and do not involve refreshing the access tokens.
I have a javascript app running on a third-party site that does one time lookups against the api well.
I’d like to create a sample server app, preferably in java, that would connect periodically using an assigned client secret and refresh access tokens.
I have found documentation for accessing Google API's at the second link below but it is not clear if "Google APIs" include Google App Engine endpoints or just the standard suite of google apis.
What is not clear to me is that at the first link the documentation suggests that a client library needs to be generated from the backend endpoint api using maven or the endpoints.sh tool. Examples are provided for iOS/Android but there is no discussion for third party access.
Does anyone know is the server access configuration I describe possible with custom endpoints? Has anyone encountered example code for a server app that uses refresh tokens against an endpoint api?
Thanks!
End Points Documentation:
https://cloud.google.com/appengine/docs/java/endpoints/auth
OAuth Documentation:
https://developers.google.com/identity/protocols/OAuth2InstalledApp

Authenticating with JIRA

Hi I building an application in JAVA to grab information from JIRA by performing several rest requests, but i'm running into trouble with one where authentication is needed. From the JIRA web page i have found this https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Basic+Authentication. But i'm running into problems figuring out how to do this in java, and if there is another way that would be great.
Use the Jira REST Java Client Library, here is a tutorial to get you started.

How to implement an OAuth provider in Java?

I'm having a lot of problems trying to implement an OAuth provider.
I would like to know if anyone has successfully used an Oauth provider using Java? I found a lot of libraries but all of them are really bad commented and I cant work with them. I'm accepting any documentation that explains how an oauth provider should work and/or how implement it.
Situation: I have some data in MySQL on my server and I would like to authorize a "rely party" to access over OAuth, but I'm not sure how to do it.
I assume you want to secure your server-side services with Oauth? You did not say what kind of server-side technology you are using.
For example for REST-based servers, both Jersey and Resteasy already have Oauth integrated.
Also, this seem to be a pretty complete servlet+JSP OAuth example: http://oauth.googlecode.com/svn/code/java/example/oauth-provider/
Here is a better alternative, It's in java and comes with demo dropwizard and Java EE applications
https://github.com/OpenConextApps/apis
ApiFest is an open-source project that implements OAuth20 specification final version (RFC 6749). The project is available at github and it is released under Apache License, Version 2.0. ApiFest is written in pure Java and uses Netty as a server. You can check the code - https://github.com/apifest/apifest-oauth20. You can take a look at the documentation on the site, too - http://apifest.com.

Categories

Resources