API « restful « Java Enterprise Q&A





1. Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them?    stackoverflow.com

At my company we're starting to branch into web APIs to access and update our data; initially for partners but then likely to the public in future. At the moment the ...

2. Best/Most Comprehensive API for Stocks/Financial Data    stackoverflow.com

What is the most recommended free/public API for accessing financial market stats and stock quotes (preferrably real-time quotes)? I'm not too picky about how it's exposed (SOAP, REST, some proprietary XML ...

3. Java API for invoking REST services    stackoverflow.com

Could any one please suggest a better open source Java API for invoking REST services? Also wanted to know if Restlet API supports NTLM authentication. Thanks

4. Writing the interface to a web service API    stackoverflow.com

I'm beginning to design a web-based API and the very first issue—how will users interact with it—left me at a loss. This is an API that is only going to ...

5. How to prevent concurrency in web service API?    stackoverflow.com

We have three web services (/a, /b, /c) where each service maps to a method (go()) in a separate Java class (ClassA, ClassB, ClassC). Only one service should run at the same ...

6. Lotus Sametime web service API    stackoverflow.com

Is there a SOAP or REST API for Sametime to enable an application to push presence information on behalf of all Sametime users, and to subscribe or poll, the users' presence ...

7. Is there a Java API for creating a XHTML document?    stackoverflow.com

I want to provide a simple XHTML representation of each of the resources in a REST web service. At the moment i'm using a StringBuilder to generate these which is both tedious ...

8. Is there a Java Package for testing RESTful APIs?    stackoverflow.com

I'm getting ready to dive into testing of a RESTful service. The majority of our systems are built in Java and Eclipse, so I'm hoping to stay there. I've already found rest-client ...

9. Use Java exceptions internally for REST API user errors?    stackoverflow.com

We have a REST API that works great. We're refactoring and deciding how to internally handle errors by the users of our API. For example the user needs to specify the ...





10. Internal Java code best practice for dealing with invalid REST API parameters    stackoverflow.com

My colleague wrote the following stackoverflow question: other stack overflow question on this topic The question seems to have been misinterpreted and I want to find out the answer, so I'm starting ...

11. REST API unauthenticated requests exception based on the User-Agent    stackoverflow.com

I am developing a REST API that supports two kinds of authentication protocols:

  1. login form authentication - for browser based clients.
  2. Simple Basic authentication - for non-browser clients.
I developed a flow in which ...

12. How can I discover the contract of a non-SOAP web API?    stackoverflow.com

Let's say I have the URI for a RESTful or other contract-less API. Is it possible to determine its interface programatically? I'm using C#/ASP.net MVC, not sure if that's important. I understand ...

13. What's the best source for learning how to create RESTful APIs in Java?    stackoverflow.com

I'm looking for a book or any other resource that will help me learn how to create RESTful APIs in Java. Looking on Amazon, I saw that there are

14. What design pattern to implement in order to use a REST API?    stackoverflow.com

I'm starting a new project that will require use an external REST API that basically returns JSON and XML files. It's similar to the StackExchange API and I see ...

15. The "proper" way to implement a REST API service using JBoss AS    stackoverflow.com

I started a new job in a company that loves using the word, "enterprise." As such, everything they've written is in Java. I come from a very web-development heavy ...

16. Consuming RESTful APIs using Java    stackoverflow.com

How would you consume a RESTful API using Java with probably just the standard packages? For ex: Twitter API. I know there are great Java libraries to access it, but how ...





17. Recommended date format for REST API    stackoverflow.com

I'm writing a app that exposes a REST API. Some of the query parameters will be date/time (accurate to second), and some of the responses will be timestamps (accurate to millisecond). ...

18. Upload SLD's graphic using geoserver's REST API    stackoverflow.com

How to upload SLD's graphic using geoserver's REST API. I have managed to upload SLD's style file but I do not see any possibility to upload graphic which style is using. ...

19. Are HTTP APIs with (almost) no methods that bad?    stackoverflow.com

Suppose I have an HTTP API with two methods: read and write. So I could do

POST url: /api/read
body:
<method>customers.list</method>
<args>
 <area_code>90210</area_code>
</args>
POST would be the method for both read and write. I know it's not ...

20. How would you design an SOAP/REST API with collection as input parameters?    stackoverflow.com

I am designing a wcf web-service that will support both REST and SOAP interfaces. As methods i am looking at supporting the following type of methods:

GetClientByID(int ID)
GetClientsByID(List<int> ID)

GetClientByEmail(string Email)
GetClientsByEmail(List<string> Email)
I also ...

21. Expected API Response Times from most popular APIs    stackoverflow.com

I am looking for information on average response times for the most commonly used APIs (according to Programmable Web): http://www.programmableweb.com/apis/directory/1?sort=mashups If you you any recent data or know of any ...

22. Java OAuth Provider Library help    stackoverflow.com

I have a website with a Java back-end and I am in the process of adding a RESTful API which uses OAuth. I've already got a fairly good idea how to handle ...

23. What is a good compression API for Web calls    stackoverflow.com

We are in the process of implementing a RESTful Web Services layer (in JAX-RS/Jersey) to handle calls from Excel to our Java back end The data coming back to Excel is generally ...

24. Best way to interface data between two systems, through a third party's firewall?    stackoverflow.com

I am involved in a project, where we will basically be receiving data from two or three internal systems that are inside of a school district's firewall, and aggregating and massaging ...

25. Selectively ignore certain api's for documentation    stackoverflow.com

Does enunciate provide a means to selectively ignore certain api's? For example, if I have the following REST service:

@PUT
@Path("/somePath")
@Produces({"application/xml"})
Response somePrivateService(Data someData);
How can I exclude it from the documentation enunciate generates? ...

26. What do I enter into the fields for obtaining a Yahoo API Key?    stackoverflow.com

It asks for the Application URL and the application Domain what am I supposed to fill in those fields....the formatted suggestions in the form entries are a bit confusing. Thanks!

27. Best way for handle Read HTTPRequst post data on Restful api    stackoverflow.com

What is the best way of save data using Restful web service without using Ajax? As a example I need to add a new Customer to the database using submit button. ...

28. How to hide the internal structure of a Java API to the rest of the world    stackoverflow.com

i am developing a Java Api to do things (secret, uhhhh ;). Is there a way to hide classes, and the internal structure of my API?

What i found until now:

  • Using inner ...

29. Trying to remember software that self-documents SOAP/REST API    stackoverflow.com

I'm trying to remember the name of the piece of software that would help you self-document your REST and SOAP API's as well as other things. It has a wiki that ...

30. REST/XML Api with Java    stackoverflow.com

I am trying to provide a REST/XML Api programmed in Java. The application is given a parameter and will then return XML content via HTTP. In PHP the way I would solve ...

31. Which of these two APIs is the best to use REST or SOAP (for this specific architecture)?    stackoverflow.com

Architecture :

  • database on a central server which contains a complex hierarchical database structure.
  • The clients should be able to insert data into tables through the API, The data would be ...

32. Should I use a REST based service to connect a C# and java (or other technology) through an API?    stackoverflow.com

We are creating an API that suits the benefits of a REST based architecture. However where I struggle is in how easy it is to consume from different technologies. Its a ...

33. How to use Teambox REST API for uploading files    stackoverflow.com

Below I am pasting content from Teambox api documentation:
https://teambox.com/api/upload

uploads#create POST

/api/1/projects/:project_id/uploads

/api/1/uploads
Creates a new upload. Note that you will need to post an upload using form encoding for this to work.
Parameters ...

34. REST API for Java?    stackoverflow.com

I am preparing an application which is console based and the outcome of the application is a RDF/XML file which contains data of all my connections from LinkedIn. Now the problem ...

35. Restful Api Design Problem    stackoverflow.com

I want to create one Restful resource. I want to use my client and server to use the same interface.

        @Path("/hello")
    ...

36. Does BEACON from the EPA have an API?    stackoverflow.com

I found a page for BEACON which has a fairly complete list of beaches inside the app itself: http://iaspub.epa.gov/waters10/beacon_national_page.main However, I can't seem to find anyplace that this page actually pulls ...

37. A way to get the closest weather station to a lat/lon via API?    stackoverflow.com

There is this very nice form that you can use in order to find the closest weather station based on a latitude and longitude. http://www4.ncdc.noaa.gov/cgi-win/wwcgi.dll?WWDI~formgen~LatLon However, I've been looking around for ...

38. What is the best Lightweight/high performance embedded web-server for implementing REstful API    stackoverflow.com

What is the best Lightweight/high performance embedded web-server for implementing REstful API. I need to interface it with java code. can anyone suggest me the best solution for it? as I am ...

39. Assignment rules are being ignored when creating a Lead through the Salesforce REST API    stackoverflow.com

I have an old application that uses Web-To-Lead. I'm updating it to use the REST API. We have a bunch of assignment rules set up for Leads. When ...

40. Akka-Camel integration module example using Java API    stackoverflow.com

Can someone point me to an example of using Akka Camel integration module - using the Java API. I have a use case where a REST service is called that would ...

41. Question about Java API design for RESTful application    stackoverflow.com

I need to design a RESTful application which allows me to access the people’s contact information from Facebook. I stored the First name, last name, email address in the database. For ...

42. Benchmarking/Performance testing of the API - REST/SOAP    stackoverflow.com

I'm trying to benchmark/ do performance testing of API's at my work. So the client facing is REST format while the backend data is retrieved by SOAP messages. So my question ...

43. Heroku REST api Call in java    stackoverflow.com

can we connect to heroku using webservices or anything else . i want to set up an integration in java which should login in ito heroku and run my application.?

44. I am using RESTEasy API in my app. I am using @BadgerFish annotation for mapping json with POJO. so how to exclude additional fields    stackoverflow.com

@BadgerFish
public class User{
private Stirng name;
private int loginCount = 0;

public String getName() {
        return name;
    }
public void setName(String nm) {
   ...

45. TestNG, Jenkins, Integrationtesting a RESTful API: how to specify the Base URL?    stackoverflow.com

I'm developing a RESTful webservice in Java. For Integrationtesting I use a separate project, which uses the jersey client to access the webservice. During development I deploy the artifacts on a local ...

46. REST API (xml and json) formating with Play Framework    stackoverflow.com

I have a simple model class with several attribut.

@Column(length = 50, nullable = false)
@Required
@MaxSize(50)
public String name;

@Column(length = 50)
@MaxSize(50)
public String coordGeo; //geographic coordinate
When I expose it in different format (xml and Json) ...

47. Spread Betting API?    stackoverflow.com

Does anyone know of any Java or REST API for any Financial Markets Spread Betting provider? I want to automate opening and closing of positions in stocks listed on the S&P 500 ...

48. Open source CMS with REST based api support    stackoverflow.com

Is there any open source CMS in a java/xml platform which supports REST based apis ? Basically i like to deploy a CMS as well a widget like application who can ...

49. How to invoke REST api with xml body    stackoverflow.com

I have a REST api ( https://localhost/server/api/login) for login which accept the parameters in xml format as shown below.

<?xml version="1.0" encoding="UTF-8" ?> 
<Request xmlns="http://www.xxxx.com/center/cbm/1.0.0">
  <Users>
    ...

50. Starting a RESTful API in Java EE 6    stackoverflow.com

My work is going to be taking on a RESTful API project that will be built in Java-EE and JAX-RS. I'm very interested in getting a jump start on learning ...

51. JSON REST API    jmeter.512774.n5.nabble.com

This post has NOT been accepted by the mailing list yet. I am trying to automate JSON format REST API,and we use PUT method. My request in json file, if I want to parameterize the data inside the json file like userid and friend id in the below example, how to do that? sample request in json file: { ...

52. Re: RESTful API    jmeter.512774.n5.nabble.com

Hi, Please keep all JMeter communication on the mailing list. REST is implemented on top of the HTTP so yes, JMeters HTTP Sampler can execute calls to a RST based API sever. Regards, Noel ----- "Priya Taide" <[hidden email]> wrote: > > Hi Noel, I am interested in working RESTful API using Jmeter but am unable to find any content for ...

53. RESTful API    jmeter.512774.n5.nabble.com

What are the objectives of your test? (What do you want to prove/disprove)? Figure out this first, then you can design your tests in JMeter accordingly. I haven't load tested REST over HTTPS but I don't think it should be any different than HTTP. There's a good article here if you need to get going quickly: http://jakarta.apache.org/jmeter/usermanual/boss.htmlIs the authentication you describe ...

54. RESTful APIs: GETs with bodies?    coderanch.com

OK, I've done some poking around, and it seems that the HTTP Specification doesn't specifically prohibit GET request with bodies, but it's just something doesn't get done very often. In fact, libraries like HttpClient don't even allow it (hence my question here). As we know, GETs should be used when a resource is being queried with no effects on the server ...

55. getting exception while accessing REST API    coderanch.com

Hi All.. I am writting a REST based webservices using REST Easy API. Webservice is giving result in either application/xml or application/json as per accept Header. When my result is application/xml, i am gettting a below exception on console.. SEVERE: An exception occured writing the response entity javax.ws.rs.WebApplicationException at org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.getJaxbContext(AbstractJaxbProvider.java:65) at org.restlet.ext.jaxrs.internal.provider.AbstractJaxbProvider.marshal(AbstractJaxbProvider.java:84) at org.restlet.ext.jaxrs.internal.provider.JaxbProvider.writeTo(JaxbProvider.java:106) at org.restlet.ext.jaxrs.internal.wrappers.provider.SingletonProvider.writeTo(SingletonProvider.java:335) at org.restlet.ext.jaxrs.internal.util.JaxRsOutputRepresentation.write(JaxRsOutputRepresentation.java:105) at com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.java:492) at ...

59. Java restful api jax -rs with ssl    java-forums.org

Hi All, I am new to this forum and also new to java. No idea is it the right place to ask this question. I have one sipxecs server. I want to access restful services of that server. So i used jersey api in following way: SSLContext ctx=null; try { KeyStore trustStore; trustStore = KeyStore.getInstance("JKS"); trustStore.load(new FileInputStream("c:\\keystore.jks"),"abcd1234".toC harArray()); TrustManagerFactory tmf=TrustManagerFactory.getInstance("SunX509"); tmf.init(trustStore); ...