> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/extracting-data-into-pdi/work-with-the-streamlined-data-refinery/install-and-configure-the-streamlined-data-refinery/app-endpoints-for-sdr-forms.md).

# App endpoints for SDR forms

These are a few API endpoints that you can also use to run the app. To perform a command, alter this example to match your parameters:

```
http://*\{host\}*/pentaho/plugin/*\{pluginID\}*/api/*\{command\}*
```

Here are a couple of examples using some parameters:

* **Genre Selector API**

  ```
  http://localhost:8080/pentaho/plugin/SDR/api/genre
  ```
* **Example Response**

  ```
  {"metadata":[{"colIndex":0,"colType":"String","colName":"GenreID"},{"colIndex":1,"colType":"String","colName":"Genre"}],"queryInfo":{"totalRows":18},"resultset":[["Action","Action"],["Adventure","Adventure"],["Animation","Animation"],["Childrens","Childrens"],["Comedy","Comedy"],["Crime","Crime"],["Documentary","Documentary"],["Drama","Drama"],["Fantasy","Fantasy"],["Film-Noir","Film-Noir"],["Horror","Horror"],["Musical","Musical"],["Mystery","Mystery"],["Romance","Romance"],["Sci-Fi","Sci-Fi"],["Thriller","Thriller"],["War","War"],["Western","Western"]]}
  ```
* **Gender Selector API**

  ```
  http://localhost:8080/pentaho/plugin/SDR/api/gender
  ```
* **Example Response**

  ```
  {"metadata":[{"colIndex":0,"colType":"String","colName":"GenderID"},{"colIndex":1,"colType":"String","colName":"Gender"}],"queryInfo":{"totalRows":2},"resultset":[["M","Male"],["F","Female"]]}
  ```

Here is a list of app endpoint parameters:

| Endpoint               | Description                                                                                                          |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **genre**              | Populates the options for the **genre** selector.                                                                    |
| **gender**             | Populates the options for the **gender** selector.                                                                   |
| **occupation**         | Populates the options for the **occupation** selector.                                                               |
| **income**             | Populates the options for the **income** selector.                                                                   |
| **firstdate**          | Returns the limit dates for the data to be processed.                                                                |
| **data\_source\_name** | Returns the names of all data sources available on the server.                                                       |
| **latest\_requests**   | Returns the latest 10 requests made in a table, instead of inside of a popup.                                        |
| **sdr\_data**          | Processes the request and returns the status of the data.                                                            |
| **refresh**            | Refreshes the kettle and dashboard elements to reflect any saved changes. Clears the cache for all kettle endpoints. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/pdia-data-integration/extracting-data-into-pdi/work-with-the-streamlined-data-refinery/install-and-configure-the-streamlined-data-refinery/app-endpoints-for-sdr-forms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
