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.
Related
I am trying to fetch some tweets from twitter using Grails. The twitter API now requires authentication via OAuth2 which I have done before in other frameworks and languages quite easily with some plugins/libraries however I cannot seem to find a working implementation in Grails. Most google searches seem to turn up results relating to using OAuth to authenticate users as the server where as I am trying to have Grails instead act as the client.
This plugin looked promising, however the repo for it appears to be broken as the following links to the binaries result in a 404.
https://repo.grails.org/grails/core/org/grails/plugins/twitter/0.2.4/twitter-0.2.4.pom
https://repo.grails.org/grails/core/org/grails/plugins/twitter/0.2.4/twitter-0.2.4.jar
Does anyone have a working implimentation for doing this?
Turns out the read me for the twitter plugin is incorrect and the plugin name should be twitter-service in the build.gradle ie:
compile "org.grails.plugins:twitter-service:0.2.4"
For those attempting to do a similar thing you may also have success with the java twitter4j library.
I have designed a independent Angular 4 application in Node.js and also design a rest api service using dropwizard. I have tried to connect website as static asset for dropwizard service but I could not integrate it properly. I had gone through several links on google, everywhere repeating same thing which I have tried many a times.
One thing I thought of deploying both of these independently but a question rises how?? How can I deploy two thing on server under same domain?
Another thing which can be possible is Integrate Dropwizard with angular app, which I have tried and read many docs. but still If someone can give some sort of link related to creating these in maven is most welcome.
I need some insight regarding this.
Thanks.
How can I deploy two thing on server under same domain?
Deploy them behind a reverse proxy like nginx and use different context paths.
You could serve the result of package Angular app as a Dropwizard asset
Then you can call the rest API from Angular.
Remember that Dropwizard is just some code to glue together Jersey (for rest), Jetty (webserver) and Jackson (JSON), with the main purpose of simplifying configuration.
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.
I have to create a security layer on top of my current Heroku app/salesforce connection using OAuth 2. It has to be that the authorization server and resource server is on the Heroku side so others cannot access the Heroku. The Heroku is effectively being sent some data through a Salesforce callout and then returning the computed results. I have found numerous tutorials from Salesforce as the server side but I cannot find any with a Java based Heroku. I have also found the apache oltu library but cannot find any tutorials as to how to use it correctly. If anyone could give me any tips/tutorials/code snippets, would be greatly appreciated!
Thanks, Josh
This might help: https://www.jamesward.com/2016/01/26/quick-force-java-getting-started-with-salesforce-rest-in-java
Code is at: https://github.com/jamesward/quick-force-java
It has the OAuth pieces and runs on Heroku.
I want to utilise the Facebook JavaScript API in the client, but manage app logic and configuration on the server through REST web services. I've tried a lot of tutorials out there, but so far I haven't seen one that actually works.
What do you recommend as a server / web framework?
What technology should I use for my REST endpoints?
How can I host this application in a place where facebook will "see" it as a valid app?
I'm looking for a comprehensive tutorial or set of recommended practices to get started.
Thanks
I just so happened to create a blog series that takes you through EVERYTHING you will need. The articles:
Setup Eclipse (IDE) and JBoss AS7 (server)
Setup other JBoss Tools including Forge
Setup JAX-RS Web Service in Java using Forge (very easy!)
Setup account to Host the site for FREE with OpenShift
Setup an entire sample Facebook App
This blog series should be EXACTLY what you're looking for. You can find the first of three articles here:
http://ocpsoft.org/opensource/creating-a-facebook-app-setup-and-tool-installation/
I would recommend going with Spring Social module with has a good abstraction of the Facebook API.
You could then expose these services via REST with Spring Web Services or Jersey.
I am not sure about the hosting. Facebook should see it as a valid application no matter the host. Even your development computer/localhost cando it.