Feature #3884

Pithos API URL from JS properties

Added by Christos KK Loverdos almost 11 years ago. Updated almost 11 years ago.

Status:Closed Start date:05/30/2013
Priority:Medium Due date:
Assignee:Christos KK Loverdos % Done:

100%

Category:Pithos UI Spent time: -
Target version:-

Description

Use the otherProperties Javascript mechanism to get the API REST URL (+ the user_catalogs URL)

Associated revisions

Revision 28e270f9
Added by Christos KK Loverdos almost 11 years ago

Configurable service URLs via the otherProperties JS mechanism

I have implemented the following:

  • Key STORAGE_API_URL represents the Pithos API
    URL and it is search for in otherProperties.
  • Key USER_CATALOGS_API_URL represents the
    /user_catalogs API URL and it is searched for
    in otherProperties.
  • If STORAGE_API_URL is found then we use that
    as the API URL otherwise we fall back to the
    previous mechanism.
  • If USER_CATALOGS_API_URL is found then we use
    that as the /user_catalogs API URL otherwise
    we fall back to the previous mechanism (which
    is really ad-hoc anyway)

Refs #3884

Revision 49c28de1
Added by Christos KK Loverdos almost 11 years ago

Merge branch 'issue_3884' into develop

Refs #3884

Revision d2b953c5
Added by Kostas Papadimitriou almost 11 years ago

Try to resolve api url from otherProperties

check otherProperties.STORAGE_API_URL. Fallback to config defaults.

Refs: #3884

History

#1 Updated by Christos KK Loverdos almost 11 years ago

  • % Done changed from 0 to 100

I have implemented the following:

  • Key STORAGE_API_URL represents the Pithos API
    URL and it is search for in otherProperties.
  • Key USER_CATALOGS_API_URL represents the
    /user_catalogs API URL and it is searched for
    in otherProperties.
  • If STORAGE_API_URL is found then we use that
    as the API URL otherwise we fall back to the
    previous mechanism.
  • If USER_CATALOGS_API_URL is found then we use
    that as the /user_catalogs API URL otherwise
    we fall back to the previous mechanism (which
    is really ad-hoc anyway)

#2 Updated by Christos KK Loverdos almost 11 years ago

  • Status changed from New to Closed

#3 Updated by Vangelis Koukis almost 11 years ago

  • Category set to Pithos UI

Also available in: Atom PDF