0

Would you be able to use the Java Restlet RESTful API to interface with some provider's API that is written in PHP?

If so, by what means is this done?

More specifically, for anyone who has used the Restlet API, do you know of any particular packages or classes intended for this use?

2
  • I think your question (as currently written) is too broad for SO. What research have you done? What have you tried and where have you stumbled? Commented Jun 6, 2012 at 21:37
  • I've researched RESTful design aspects and Java-implementations. I don't really think it's broad so much as just simple. It doesn't require an in-depth answer, just an example of what I'm looking for. Commented Jun 7, 2012 at 2:25

1 Answer 1

1

RESTfull web services are designed to be language independent. Most people use JSON as way of communication with REST. And this makes the whole thing language independent.

There is no reason why your Java RESTful API shouldnot work with PHP REST API.

Sign up to request clarification or add additional context in comments.

3 Comments

Ok. How does it work though? Does the language API have methods to invoke code in the PHP API?
RESTfull webservices work on url. Each service is mapped to a specific url and method(GET,PUT,POST etc). You can call the services using rest clients.
Right. So calling the service with a GET request will just run whatever method is mapped to GET regardless of the language?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.