ArisiaInc / a21-remote-site

Website for logged-in attendees of Arisia 2021
Apache License 2.0
2 stars 2 forks source link

Backend support for looking at someone else's profile #306

Closed jducoeur closed 3 years ago

jducoeur commented 3 years ago

The entry point will be /api/user/:id, where :id is the badge number.

Returns an enhanced variant of /api/me -- spec from Gail:

export interface User {
  id: string;
  name: string;
  badgeNumber: string;
  zoomHost: boolean;
  ducks?: string[];
}
also will have ribbons?: string[]
jducoeur commented 3 years ago

Try to make them consistent, and have exactly the same info in both entry points. Possibly migrate /api/me to /api/user, for API consistency.