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 list shifts for swap request endpoint #2697

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Conversation

matiasb
Copy link
Contributor

@matiasb matiasb commented Jul 31, 2023

Example request/response:

GET /api/internal/v1/shift_swaps/SSR3FJC9H3HZCHT/shifts

{
	"events": [
		{
			"all_day": false,
			"start": "2023-08-01T00:00:00Z",
			"end": "2023-08-01T03:00:00Z",
			"users": [
				{
					"display_name": "testing",
					"email": "testing",
					"pk": "UWJWIN8MQ1GYL",
					"avatar_full": "http://localhost:3000/avatar/ae2b1fca515949e5d54fb22b8ed95575",
					"swap_request": {
						"pk": "SSR3FJC9H3HZCHT"
					}
				}
			],
			"missing_users": [],
			"priority_level": 1,
			"source": "web",
			"calendar_type": 0,
			"is_empty": false,
			"is_gap": false,
			"is_override": false,
			"shift": {
				"pk": "OK9SS5YP42XRG"
			}
		},
		{
			"all_day": false,
			"start": "2023-08-01T03:00:00Z",
			"end": "2023-08-02T00:00:00Z",
			"users": [
				{
					"display_name": "testing",
					"email": "testing",
					"pk": "UWJWIN8MQ1GYL",
					"avatar_full": "http://localhost:3000/avatar/ae2b1fca515949e5d54fb22b8ed95575",
					"swap_request": {
						"pk": "SSR3FJC9H3HZCHT"
					}
				}
			],
			"missing_users": [],
			"priority_level": 1,
			"source": "web",
			"calendar_type": 0,
			"is_empty": false,
			"is_gap": false,
			"is_override": false,
			"shift": {
				"pk": "OK9SS5YP42XRG"
			}
		}
	]
}

@matiasb matiasb added the pr:no public docs Added to a PR that does not require public documentation updates label Jul 31, 2023
@matiasb matiasb force-pushed the matiasb/shift-swaps-events branch 2 times, most recently from 0b3f7ad to 328fff7 Compare July 31, 2023 15:24
@matiasb matiasb marked this pull request as ready for review July 31, 2023 15:39
@matiasb matiasb requested a review from a team July 31, 2023 15:39
@matiasb matiasb added this pull request to the merge queue Jul 31, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 31, 2023
@matiasb matiasb added this pull request to the merge queue Jul 31, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 31, 2023
@matiasb matiasb force-pushed the matiasb/shift-swaps-events branch from 328fff7 to 10cfecc Compare July 31, 2023 17:48
@matiasb matiasb merged commit 09e4a4d into dev Jul 31, 2023
23 of 25 checks passed
@matiasb matiasb deleted the matiasb/shift-swaps-events branch July 31, 2023 18:13
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.

2 participants