1.0.4 • Published 4 years ago

@famartech/og-sdk v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

og-sdk

This SDK set of libraries could be used to interact with APIS.

Nuxt settings

Use the following keys to replace settings in the behavior of SDK.

// nuxt.config.js
{
  publicRuntimeConfig: {
      // Og SDK settings
      og: {

        // Indicate we should use cookie credentials
        API_CREDENTIALS: true,

        // The main URL where SDK will request
        API_URL: "http://api.example.com/",

        // The path in the API where to POST login information.
        AUTH_API_PATH_LOGIN: 'login',

        // The path in the API where to GET the user information.
        AUTH_API_PATH_USER: 'users/current',

        AUTH_USER_RESOURCE: OgResource,

        API_HEADERS: {
          'Content-Type': 'application/json',
          Accept: 'application/json'
        }
      }
    }
}
1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago