-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ejs
38 lines (22 loc) · 1007 Bytes
/
index.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<pre>
DESCRIPTION
An alias service for WebID.
As DNS serves IP address from domain name, this service return a
full webid url from a simplier alias in the form of
`@[host].[username]`
Example: ( `sc` is the alias for solidcommunity.net )
$ curl <%= baseurl %>/@sc.john
https://john.solidcommunity.net/profile/card#me
It has two primary benefits:
- do not bother to type a full WebID
- use a format closest to what other platforms use at an
identifier ( sharing the same `@` used by email address and social
media username ). The URL format of WebID might be misleading.
API USAGE
GET <%= baseurl %>/aliases
Return a JSON document with all the current host aliases.
To add an alias, please edit <%= aliases_source_file %> and send a PR
GET <%= baseurl %>/@[host_alias].[username]
Return the complete WebID from the alias. See /aliases to get a
complete list of available aliases
</pre>