adsabs / adsws

ADS web services
Other
2 stars 15 forks source link

UID from e-mail address endpoint #58

Closed jonnybazookatone closed 9 years ago

jonnybazookatone commented 9 years ago

ADS Libraries would need an endpoint that returns the API user ID for a given user from their e-mail address.

vsudilov commented 9 years ago

Will get to this in the first half of this week; let's assume the endpoint will be /v1/user/<:email>, which will respond with json containing {"uid": <int>}, amongst other data.

jonnybazookatone commented 9 years ago

OK. No rush on my end. Thanks.

jonnybazookatone commented 9 years ago

And if the user does not exist, you will return a 404?

vsudilov commented 9 years ago

Sounds logical to me