← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

[WebGallery] Urls catalog

 

In a meeting a couple of weeks ago, I said we should check the url schema
of the web gallery before launching it.

Since I was worried about it, it seems fair that I collect the current urls
and send them, so here you have it.

Duplicate urls for the same content:

   - Opportunities
      -
      - All Opportunities:
         - '^$'
         - '^opportunities/$'
         - '^gallery/$'
         - '^gallery/opportunities/$'
      - Opportunity details:
         - '^opportunities/(?P<accomid>[\w-]+/[\w-]+)$'
         - '^gallery/opportunities/(?P<accomid>[\w-]+/[\w-]+)$'
      - Trophies
      - All user's trophies:
         - '^trophies/(?P<username>[\w-]+)/$'
         - '^trophies/(?P<username>[\w-]+)/all/$'
         - '^gallery/trophies/(?P<username>[\w-]+)/$'
         - '^gallery/trophies/(?P<username>[\w-]+)/all/$'
      - Latest User's trophies:
         - '^trophies/(?P<username>[\w-]+)/latest/$'
         - '^gallery/trophies/(?P<username>[\w-]+)/latest/$'
      - User's trophies by Collection
         -
         '^trophies/(?P<username>[\w-]+)/collection/(?P<collection_id>[\w-]+)/$'
         -
         '^gallery/trophies/(?P<username>[\w-]+)/collection/(?P<collection_id>[\w-]+)/$'
      - Trophy details:
         - '^trophies/(?P<username>[\w-]+)/(?P<accomid>[\w-]+/[\w-]+)/$'
         -
         '^gallery/trophies/(?P<username>[\w-]+)/(?P<accomid>[\w-]+/[\w-]+)/$'



The main issue is that we are duplicating all urls by mapping them both to
the root url and the gallery/ directory.
Then, we are duplicating again for the 'all things' pages for opportunities
and trophies.



Urls that are not duplicated:

   - Users
      - '^user/profile$'
      - '^user/addshare$'   (should belong to API?)
      - '^user/getusername$'   (should belong to API?)
   - API
      - '^api/user/(.*)$'
      - '^api/collection/(.*)$'
      - '^api/category/(.*)$'
      - '^api/icon/(.*)$'
      - '^api/accomplishment/(.*)$'
      - '^api/trophies/(?P<username>.+)/$'
   - Other
      - '^admin/'
      - '^i18n/'
      - '^openid/'
      - '^logout/$'





-- 
Gabriel E. Patiño
http://about.me/gepatino