3.2.0 • Published 6 years ago

sassi-api v3.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

sassi-api

The sassi-api package is client side library for calling the sassi api hosted on the server. Assuming your service/slot is hosting the sassi-api, you can use this library to fetch the data:

const apiConfigParams: SassiApiConfig = {
    baseUrlPath: '/api/_sassi_',
    sbdJsonPath: 'sbd.json',
    sbdHtmlPath: 'sbd.html',
    creds: {
        id: 'SOME_ID',
        secret: 'SOME_SECRET_FROM_ENV'
    }
};

const sassiApiConfig = new SassiApiConfig(apiConfigParams);

const sassiApi = new SassiApi(sassiApiConfig);

const server = 'https://some-azure-service-slot.azurewebsites.com';

sassiApi
    .fetchServerBuildData(server)
    .then(sbd => {
        console.log('sbd: \n', JSON.stringify(sbd, undefined, 4));
    })
    .catch(error => {
        console.log('error:', error);
    });

The data returned sbd is the IServerBuildData defined in sassi-core.

Note, the sassi-server-api extends the sassi-api with server specific configuration, so it can be shared.

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago