Home
Marcus Rohrmoser edited this page 10 months ago

URLs

Goals

be

  1. cool,
  2. short,
  3. compatible with legacy shaarli in terms of Shaarli-API-test (ShaarliGo and Shaarlier?),
  4. for the user,
  5. atomic (RFC4287) & RESTy
  6. lean on redirects (really?)
GET /
GET =/p/
GET =/p-0/
# POST =/p/
GET =/p/2Giq6A/
# PUT =/p/2Giq6A/
# DELETE =/p/2Giq6A/
GET =/t/
GET =/t/index.json
GET =/t/🦁/
GET =/t/🦁-0/
PUT =/t/🦁/
# DELETE =/t/🦁/
GET shaarligo.cgi
GET shaarligo.cgi?post=foo.com
POST shaarligo.cgi?post=foo.com
GET shaarligo.cgi/config/
PUT shaarligo.cgi/config/
GET shaarligo.cgi?do=login
POST shaarligo.cgi?do=login
POST shaarligo.cgi?do=logout
GET shaarligo.cgi/session/
GET shaarligo.cgi/tools/
GET shaarligo.cgi/search/?q=%23tag+term
GET shaarligo.cgi/search/?q=%23tag+term&offset=50

better

GET =/p0/
GET =/p/0gio1lk/
GET =/t/🦁0/
GET =/p/?q=%23tag+term

Private Posts

If we only distinguish between public and private – private posts could go into

.p/
.t/
.d/
.i/

or

.p:
.t:
.d:
.i: