Can anyone suggest me how i can use ServiceNow Api's and i did a bit of research on it and found it requires authentication. Is it true?
also
I need jena for java 1.7 inorder to use sparql query.It is showing
major.minor version 52.0 which is because jena is expecting java 1.8 but i
want to work on 1.7
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/jena/query/ResultSet : Unsupported major.minor version 52.0
I know this isn't a technical question but any kind of help would be very helpful.
yes typically most ServiceNow APIs require authentication. You can use either Basic or OAuth2. You can find more info about it here: http://wiki.servicenow.com/index.php?title=REST_API#Security. Hope this helps.
Related
as the title suggest, i am wondering why the jena-iri module is completely absent of the javadoc in jena 4. Is the package about to be deprecated ? how does it related to the package org.apache.jena.irix ?
I mean in code we still have access to jena-iri.
Can someone be kind as to clarify the difference and purpose of both jena-iri and org.apache.jena.irix ?
There are details in the pre-release news for Jena 4.0.0, the community announcement and the IRIx javadoc.
The package is not going to be deprecated or removed.
IRIx is a wrapper abstraction to allow for multiple IRI implementations.
jena-iri is the active implementation in Jena 4.0.0.
This change allows for an additional IRI parser that is centred on the task of checking incoming data with lower overhead.
I know that there is a way to generate the client-side code from the swagger yaml with swagger-codegen, but is there a way to generate the swagger yaml with the C++ annotations similar to what can be done in Java.
There seem to be annotation libraries available for other languages e.g python C# (https://swagger.io/blog/api-development/swagger-annotation-libraries/) but I am not able to find any support for C++.
I don`t think so. As far as I know the Swagger Core Annotations are part of the Swagger Core Project, and in the documentation you can find:
Swagger Core is a Java implementation of the OpenAPI Specification.
Current version supports JAX-RS2.
Also the Prerequisites says:
You need the following installed and available in your $PATH:
Java 8
Apache maven 3.0.4 or greater
Jackson 2.4.5 or greater
Update:
I'm not quite sure if oatpp-swagger can fit your requirements.
I am new to swagger and found there are two packages for swagger annotation: io.swagger.annotations and com.wordnik.swagger.annotations. I wonder what the difference is between them and what I should use?
The com.wordnik package is for the older swagger specifications, 1.x. As of swagger specification 2.0, the package is now io.swagger. The annotation signatures should be the same, just the package has changed.
These are different versions of swagger which go with different versions of other supporting software stack that you might be using.
I too came across these two a month ago when trying to integrate my application with swagger ui. I was using cxf 2.7.11, jackson 2.6.0 with spring 3.0.7 . I struggled a lot with com.wordnik (older version where swagger json is generated at url api_docs with usage of ApiListingResource etc) but then thought of implementing io.swagger (newer version) just to see the difference. Turned out that was the version i should have been using in the first place. Everything fell in place after that.
One addition in case others were wondering, too:
We used swagger version 1.3.13 which was called swagger-core_2.10. Initially I thought this may indicate a swagger API 2.X compatibility which it actually isn't: 2.10 is the bundled Scala version (mentioned here) This means means 25 MB of unecessary dependenies! So the current swagger version 1.5.X was rewritten in pure java and is much smaller in size. The scala version was moved to a separate project.
I was in the process of trying to update my Jena code to a more recent version (currently using 2.6.4). I wanted to use 2.11 but I realized that the Reifier interface is gone in that version. Why was it deprecated and is there an alternative that I can use?
Thanks
After looking around. I found the answer.
http://t5623.apache-jena-development.apacheforum.info/jena-core-simplification-t5623.html
I am using XStudio- a test management application and it currently contains my testcase resulst(pass/fail). I am planning to dynamically log bug into JIRA using XStudio. Kindly let me know if any plugins are available to do the same or should I write script to log defects. If writing script is a good option, please help me to write the script to log bug and invoke the script from XStudio. Any help would be greatly appreciated.
You could use the Jira JIRA Remote API. You should choose between REST, SOAP, XML-RPC of JSON-RPC according to your Jira version and the desired scripting language.
To do something similar, I've used python and XML-RPC, you can find a very good example here. If you need any help please supply the Jira's version number, which API, and which language.
Good luck!