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

Get volunteering status #153

Open
NitayRabi opened this issue Feb 11, 2019 · 1 comment
Open

Get volunteering status #153

NitayRabi opened this issue Feb 11, 2019 · 1 comment

Comments

@NitayRabi
Copy link

Communities app should display if a camp/art member is volunteering in a department (or member of another camp/art)

@may-ben-arie - do you have an API which receives a list of member ids/emails and returns if the burner volunteers in a department?

@mbenarie
Copy link
Collaborator

mbenarie commented Feb 25, 2019

Implement a new API
POST /public/volunteers/getInfo

This api gets a list of midburn profiles (email addresses) and event ID (string)
and for each profile returns a list of departments this user is volunteering at this year.
I suggest to return a map.

example:
request:

{
	"profiles": ["[email protected]", "[email protected]", "[email protected]"],
	"eventId": "MIDBURN2019"
}

response:

{
	"[email protected]": [{
		"nameEn": "Tech",
		"nameHe": "טק",
		"departmentId": "39et389y7"
	}],
	"[email protected]": [{
		"nameEn": "Tech",
		"nameHe": "טק",
		"departmentId": "39et389y7"
	}, {
		"nameEn": "Gate",
		"nameHe": "גייט",
		"departmentId": "t7583u9sd"
	}],
	"[email protected]": []
}

This API should be server-server authenticated with spark secret. expecting an header named 'token' that contains spark secret.
similar to /public/volunteers/getEarlyEntrance API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants