# Development

The [Visual Studio Code extension for PowerShell Universal](https://marketplace.visualstudio.com/items?itemName=ironmansoftware.powershell-universal) provides integration for working with APIs. We recommend you also install the [PowerShell extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell).

## Developing APIs

You can add APIs by using the admin console or through the editor in Visual Studio Code.

To add an API in the Admin Console, you can visit `http://localhost:5000/admin/apis` and click Add Endpoint.

![](/files/-MHD_OeHV1jBS-M5k6X3)

Once an `endpoints.ps1` file has been created, you can click the Open Endpoints.ps1 button within the API tree view to view the configuration file for APIs.

![](/files/-MHD_98QxaFexOGMdHLz)

The configuration file uses the Universal PowerShell cmdlets to define the endpoints within Universal.

If you created a blank endpoint, it would look something like this.

```
New-PSUEndpoint -Url "/test" -Endpoint { 
    # Enter your script to process requests.
}
```

If you edit the `endpoints.ps1` file, it will update the API automatically. For example, if I added a new API, it would then appear in the admin console.

```
New-PSUEndpoint -Url "/test" -Endpoint { 
 "hello"
}

New-PSUEndpoint -Url "/test2" -Endpoint { 
    # Enter your script to process requests.
}
```

![](/files/-MHDaGj-rXpAdDiIJgcF)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powershelluniversal.com/v1/api/development.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
