Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter_shift_swaps endpoint to schedules API #2684

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

matiasb
Copy link
Contributor

@matiasb matiasb commented Jul 28, 2023

Example request/response

GET /api/internal/v1/schedules/SVV8E9JGLLR9T/filter_shift_swaps/?date=2023-07-22&days=9

{
	"shift_swaps": [
		{
			"id": "SSR1QJ93UNCUPC4",
			"created_at": "2023-07-27T12:55:32.188232Z",
			"updated_at": "2023-07-28T13:28:08.027124Z",
			"status": "taken",
			"schedule": "SVV8E9JGLLR9T",
			"swap_start": "2023-07-24T21:00:00.000000Z",
			"swap_end": "2023-08-04T03:00:00.000000Z",
			"description": null,
			"beneficiary": "UWJWIN8MQ1GYL",
			"benefactor": "UVSKHRA4YU328"
		}
	]
}

@matiasb matiasb added the pr:no public docs Added to a PR that does not require public documentation updates label Jul 28, 2023
@matiasb matiasb marked this pull request as ready for review July 28, 2023 20:58
@matiasb matiasb requested a review from a team July 28, 2023 20:58
@matiasb matiasb added this pull request to the merge queue Jul 31, 2023
Merged via the queue into dev with commit 000372f Jul 31, 2023
@matiasb matiasb deleted the matiasb/filter-schedule-swap-requests-endpoint branch July 31, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants