serlo / serlo.org-legacy

Legacy implementation of https://serlo.org/
https://serlo.org/
Apache License 2.0
18 stars 3 forks source link

server-api: Add alias support for /user/profile/:username #502

Closed kulla closed 3 years ago

kulla commented 4 years ago

Add support for resolving /user/profile/:username in /api/alias/:alias so that https://github.com/serlo/api.serlo.org/pull/84 can be finished (see also https://github.com/serlo/api.serlo.org/issues/67 ).

Example result for http://de.serlo.localhost:4567/api/alias/user/profile/Kulla:

{
  "id": 26217,
  "instance": "de",
  "path": "/user/profile/Kulla",
  "source": "/user/profile/Kulla",
  "timestamp": "2014-07-07T18:24:52+02:00"
}