# 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.

![](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MHDZ35FwxJNZI2rDnr2%2F-MHD_OeHV1jBS-M5k6X3%2Fimage.png?alt=media\&token=82927a6f-3db5-4fe4-a17d-22ab40f4fab2)

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.

![](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MHDZ35FwxJNZI2rDnr2%2F-MHD_98QxaFexOGMdHLz%2Fimage.png?alt=media\&token=75f435bf-abc8-4793-8ea4-89dc0156e6e5)

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.
}
```

![](https://2374445323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MHDZ35FwxJNZI2rDnr2%2F-MHDaGj-rXpAdDiIJgcF%2Fimage.png?alt=media\&token=f088d822-bb46-4245-a588-b538a6c4a8ce)
