| copyright |
|
||
|---|---|---|---|
| lastupdated | 2017-11-16 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}
Application developers use the Web Application Description Language (WADL) to extend the use of Web applications. You can retrieve the WADL for an {{site.data.keyword.pm_full}} application by using an API call. {: shortdesc}
OPTIONS http://{PA Bluemix load balancer URL}/pm/v1/wadl
{: codeblock}
Request example:
Content-Type: */*
{: codeblock}
Response when the WADL request succeeds:
Content-Type: application/vnd.sun.wadl+xml
Status code: 200
body: the WADL XML ,eg.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<application>
<resources base="http://{PA Bluemix load balancer URL}/pm/v1/">
<resource path="score">
<doc title="Score using the model with given context ID" />
<resource path="{id}">
<param style="template" name="id" />
<method name="POST">
<request>
<param style="query" name="accesskey" />
<representation mediaType="application/json;charset=UTF-8" />
</request>
<response>
<representation mediaType="application/json;charset=UTF-8" />
</response>
</method>
</resource>
</resource>
...
</resources>
</application>
{: codeblock}
Response when the WADL request fails:
Content-Type: application/json
Status code: 200
body:
{
"flag":false,
"message":"reason"
}
```
{: codeblock}
## Learn more
Ready to get started? To create an instance of a service or bind
an application, see [Using the service with Spark and Python models](using_pm_service_dsx.html) or
[Using the service with IBM® SPSS® models](using_pm_service.html).
For more information about the API, see [Service API for Spark and Python models](pm_service_api_spark.html) or [Service
API for IBM® SPSS® models](pm_service_api_spss.html).
For more information about IBM® SPSS® Modeler and the modeling algorithms it
provides, see [IBM Knowledge Center](https://www.ibm.com/support/knowledgecenter/SS3RA7).
For more information about IBM Data Science Experience and the modeling
algorithms it provides, see [https://datascience.ibm.com](https://datascience.ibm.com).