Welcome to the documentation of the Picturae Webkitchen components, on this website you can find information how to implement our components on your own website.

You can also try the demo to see how our application should behave. In case you have any questions you can contact us at contact@picturae.com.

Picturae Webkitchen - Memorix Archives

Archives - recipes and ingredients

The following page gives information about the available recipes and their ingredients.

  • /{catch:(.*)}

    Method: options
                    
    Capture all OPTIONS requests
    
                
  • /config

    Method: get
                    
    List all available predefined config for the client to use, the following parameters are available:
    lang={language} Optional language
    meta={0(default)|1} Return the list of metafields for the configuration.
    apiKey={key} '.' Api key
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    Example /config/?apiKey={key}&lang=nl&meta=1
    
                
  • /ead2solr

    Method: get
                    
    Converts the content of an EAD file to a structured PDF file
    ead={relative_path_to_ead} Path to EAD file
    apiKey={key} '.' Api key.
    Request:
    Example /ead2sol/?apiKey={key}&ead={relative_path_to_ead}
    
                
  • /findingaids

    Method: get
                    
    Returns list of findingaids
    apiKey= {key} apiKey
    lang={lang} Language
    auth= Authorisation Token
    requestSolr={1|0} Return solr fieldnames in place of translated names
    keywords={keywords} Search term
    withscans={1|0} return only results with scans
    start={start} Paging
    limit={limit} Paging Limit
    flimit=5 Facet limit
    view={view}
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /findingaids?apiKey={key}&lang=nl_NL&auth={authority_token}&requestSolr=0&keywords={keywords}&withscans=0&start=0&limit=10&flimit=5&view=context&callback=callback_json1
    
                
  • /findingaiditems

    Method: get
                    
    Returns a list of finding aid items
    Returns items for a single finding aid when passed
    apiKey= {key} apiKey
    id={id} Identifier of the archive (findingaid)
    lang={lang} Language
    auth={auth} Authorisation Token
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /faitems?apiKey={key}&lang=nl_NL&auth={authority_token}&requestSolr=0&keywords={keywords}&withscans=0&start=0&limit=10&flimit=5&view=context
    /faitems/{id}?apiKey={key}&lang=nl_NL&auth={authority_token}&requestSolr=0&keywords={keywords}&withscans=0&start=0&limit=10&flimit=5&view=context
    
                
  • /findingaiditems/{id:\{?[a-zA-Z0-9\._%-]+\}?}

    Method: get
                    
    Returns a list of finding aid items
    Returns items for a single finding aid when passed
    apiKey= {key} apiKey
    id={id} Identifier of the archive (findingaid)
    lang={lang} Language
    auth={auth} Authorisation Token
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /faitems?apiKey={key}&lang=nl_NL&auth={authority_token}&requestSolr=0&keywords={keywords}&withscans=0&start=0&limit=10&flimit=5&view=context
    /faitems/{id}?apiKey={key}&lang=nl_NL&auth={authority_token}&requestSolr=0&keywords={keywords}&withscans=0&start=0&limit=10&flimit=5&view=context
    
                
  • /findingaid/{id:\{?[a-zA-Z0-9\._%-]+\}?}

    Method: get
                    
    Returns a single findingaid
    apiKey={key} apiKey
    id={id} Identifier of the archive (finding aid)
    lang={lang} Language
    auth={auth} Authorisation Token
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /findingaid/{id}?apiKey={key}&lang={lang}&auth={authority_token}
    
                
  • /tree/{id:\{?[a-zA-Z0-9\._%-]+\}?}/{path:\{?[0-9\.]+\}?}

    Method: get
                    
    Returns tree of all subnodes of an archive (findingaid)
    apiKey={key} apiKey
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    auth={auth} Authorisation Token
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /tree/{id}/{seriesPath}
    
                
  • /datasection/{id:\{?[a-zA-Z0-9\._%-]+\}?}/{section:\{?[a-zA-Z]+\}?}

    Method: get
                    
    Returns requested sections of an EAD, identified by findingaid id
    apiKey={key} apiKey
    id={id} Identifier of the archive
    section={section} Section of the EAD to return
    auth={auth} Authorisation Token
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /datasection/{id}/{section}?apiKey={key}&{lang}&callback={callback}
    
                
  • /treestats/{id:\{?[a-zA-Z0-9\._%-]+\}?}

    Method: get
                    
    Summarizes a drilled down level of an archive, returned as a JSON callback.
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    Request:
    /tree/{id}/{seriesPath}
    
                
  • /facetvalues/{facet:\{?[a-zA-Z0-9\._%-]+\}?}/{view:\{?[a-z]+\}?}

    Method: get
                                
  • /suggest/{term:\{?.*\}?}

    Method: get
                    
    Returns (autocomplete) suggestions for a search term
    term={term}.
    apiKey={key} '.' Api key.
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /suggest/?apiKey={key}&term={term}&callback={callback}
    
                
  • /file/{id:\{?[^\/]*\}?}/{path:\{?[^\/]*\}?}

    Method: get
                    
    Returns the EAD section for the specified Archive section
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    apiKey={key} '.' Api key
    Request:
    /file/{id}/{seriesPath}?apiKey={key}
    
                
  • /file/{uuid:\{?[^\/]*\}?}

    Method: get
                    
    Returns the EAD section for the specified Archive section
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    apiKey={key} '.' Api key
    Request:
    /file/{id}/{seriesPath}?apiKey={key}
    
                
  • /scan/{id:\{?[a-zA-Z0-9\._%-]+\}?}/{fileNum:\{?[^\/]+\}?}/{serialNum:\{?[^\/]+\}?}

    Method: get
                    
    Returns information about Scan on a node
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    apiKey={key} '.' Api key
    callback={?callback} When supplied, return json within Javascript callback function.
    Request:
    /scan/{id}/{seriesPath}?apiKey={key}
    
                
  • /edepot-file/{id:\{?[a-zA-Z0-9\._%-]+\}?}/{key:\{?[^\/]*\}?}

    Method: get
                    
    Streams the EDepot file to the caller
    id={id} Identifier of the archive
    key={key} '.' EDepot key
    apiKey={apikey} '.' Api key
    Request:
    /edepot-file/{id}/{seriesPath}?apiKey={apikey}
    
                
  • /edepot-file/{id:\{?[a-zA-Z0-9\._%-]+\}?}/{key:\{?[^\/]*\}?}

    Method: options
                                
  • /path/{uuid:\{?[^\/]*\}?}

    Method: get
                    
    Retrieve path of item to link to:
    returns: ['path' => 'something/c1']
    It can be used to link to if you add the archives application location
    'http://example.com/archives/' + obj.path;
    
                
  • /scans/{findingAid:\{?[^\/]*\}?}/{path:\{?[^\/]*\}?}

    Method: get
                    
    Returns information about all Scans on a node
    id={id} Identifier of the archive
    seriesPath={path} '.' separated list of node identifiers to identify level
    apiKey={key} '.' Api key
    Request:
    /scans/{id}/{seriesPath}?apiKey={key}
    
                
  • /auth

    Method: post
                    
    Request Authorization tocken from the api.
    This endpoint is accessible only for POST requests.
    Required Parameters:
    handshakeKey={client handshake key to the api}
    Example Request:
    POST
    /auth?apiKey={apiKey}
    handshakeKey=111111-1111-1111-1111-00000
    Example Successful Return:
    {
         "status" = 0,
         "data" => {unique uuid}
         "msg" => ''
    }
    Use the returned in the data uuid for the future requests to mediabank.
    Note: Handshake Key should be secret! Dunno use it as GET parameter.
                
  • /reservation

    Method: post
                    
    

    Parameters

    Make a reservation for archives Do a post request with the following parameters Required: person[name]=test person[email]=c.dekok%40picturae.nl date=2015-12-12 unitid[0]=code.1 unitid[2]=code.2 files[0]=af75330fcf46337c89b03156437f7007 files[1]=07fb7f18dc443da492cdf5f16e38ea7b Optional: type={email|memorix-archives} The type determines what action to use post to memorix archives or send and email

    Responses

    Responses are send in json Success response: { "message": ["Reservation succesfully created"] } Error response: { "error": { "code": 400, "message": ["Name is required", "Date is invalid"] } }