posit-dev / publisher

MIT License
3 stars 0 forks source link

Add entrypoint filtering to and Deployment, Configuration, and Inspect APIs #1847

Closed dotNomad closed 22 hours ago

dotNomad commented 2 weeks ago

To allow the flow we want for selecting and deploying from a button on entrypoint files we need some APIs to support filtering by entrypoint.

The API endpoints are:

The design is currently to use an optional query parameter to modify the default behavior. ?entrypoint=path can be passed with the path being a relative path to a specific endpoint file.

The response will contain only resources related to that entrypoint.

In the case of the:


Part of the #1846 epic.

mmarchetti commented 2 days ago

See the note in https://github.com/posit-dev/publisher/pull/1916#discussion_r1661579320. The entrypoint matching test will need to be more complex since the entrypoint parameter will be relative to the workspace root, and might be a path into a subdirectory.