Skip to main content

Exporting Web Module

Export Requirements

To export the Web Module manifest.json file must contain all the required properties.

Example of manifest.json with all the obligatory fields:

{
    "redAppId": "sabre-id-redapp-sample",
    "bundleSymbolicName": "com.sabre.sample",
    "bundleName": "Sabre Sample",
    "name": "com-sabre-sample-web-module",
    "contactDetails": {
        "company": "Sabre Inc.",
        "contactName": "SRW Developers",
        "email": "redappssupport@sabre.com",
        "phoneNumber": "123-456-789",
        "website": "http://www.sabre.com"
    }
}

manifest.json can also contain authorization information, example:

{
    "redAppId": "sabre-id-redapp-sample",
    "bundleSymbolicName": "com.sabre.sample",
    "bundleName": "Sabre Sample",
    "name": "com-sabre-sample-web-module",
    "contactDetails": {
        "company": "Sabre Inc.",
        "contactName": "SRW Developers",
        "email": "redappssupport@sabre.com",
        "phoneNumber": "123-456-789",
        "website": "http://www.sabre.com"
    },
    "authorizations": [
        {
            "name": "com.sabre.edge.cf.host.Communication",
            "threshold": 10,
            "metric": "tpm"
        },
        {
            "name": "com.sabre.edge.cf.rest2sg.Rest2Sg",
            "actions": [
                {
                    "name": "/v4/lists/utilities/geocode/locations",
                    "threshold": 1,
                    "metric": "tps"
                }
            ]
        }
    ]
}

Creating validation-ready jar

Web Red App can be packaged into a validation-ready, signed jar using Concierge.

To do so use the ngv export command:

ngv export --keystore=$keystore --keypass=$keypass --alias=$alias --storepass=$storepass

Successfully ended export will create in the build/export SVS-ready {module_name}_{version}.{timestamp}.jar file signed using the data provided as command execution parameters along with the bundle.properties file and the certificate exported from the provided keystore.

java command have to be available and added to the PATH variable.

Example of ngv export:

ngv export --keystore=/c/Developer/Workspace/myKeystore --storepass=abc34 --keypass=abc34 --alias=myFirstKey