posit-dev / publisher

MIT License
3 stars 0 forks source link

Entrypoint filtering for configuration and deployment APIs #1916

Closed mmarchetti closed 5 days ago

mmarchetti commented 5 days ago

Intent

This PR adds a new entrypoint query parameter to the GET /api/configurations and GET /api/deployments endpoints. Only configurations with a matching entrypoint (or deployments whose configuration has a matching entrypoint) will be returned.

Part of #1847

Type of Change

Automated Tests

Added unit tests specific to the new parameter.

Directions for Reviewers

Test with curl:

$(just executable-path) ui -vv --listen=localhost:9001 &
curl -s 'localhost:9001/api/configurations?dir=test/sample-content/rmd-static-1&entrypoint=static.Rmd'|jq
curl -s 'localhost:9001/api/configurations?dir=test/sample-content/rmd-static-1&entrypoint=index.htm'|jq