feat(api): add /dap/status and /dap/logs API endpoints#280
Merged
Conversation
03f79a4 to
de7621c
Compare
thecaffiend
reviewed
Aug 22, 2025
fe47961 to
5a401ee
Compare
thecaffiend
approved these changes
Aug 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds 2 API endpoints:
/dap/statuswhich takes an AWS BatchjobIdand returns the current job information/dap/logswhich takes an AWS Cloudwatch log stream name and optionally a next pagination token and a limit and returns all of the log messages along with next/previous pagination tokens if they existTo Test
Call
/dap/statuson a job or multiple jobs from AWS Batch in the workflow queue. For example:Call
/dap/logson alogStreamNamereturned from the previous call. For example:You can also pass in
limitto limit the number of messages:And use the
nextForwardTokenornextBackwardTokenin the response to continue paginating with `nextToken: