Skip to content

Commit

Permalink
Stash: initialization docs WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Jan 24, 2024
1 parent 6fb2f1b commit 4e63e54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
A JavaScript/TypeScript API wrapper for [Dataverse](http://guides.dataverse.org/en/latest/api/).

- [Installation](./docs/installation.md)
- [Use Cases Documentation](./docs/api.md)
- [Use Cases](./docs/useCases.md)
- [Local Development](./docs/localDevelopment.md)
- [Contributing](./CONTRIBUTING.md)
- [License](./LICENSE)
16 changes: 14 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## NPM

### Stable version

A stable 1.x version of this package is available as `js-dataverse` at https://www.npmjs.com/package/js-dataverse

Install the package stable version using npm:
Expand All @@ -10,10 +12,20 @@ Install the package stable version using npm:
npm install js-dataverse
```

### Development versions

An unstable 2.x version of this package with breaking changes is under development.

Until a 2.0 version is officially released, it can be installed from https://github.com/IQSS/dataverse-client-javascript/pkgs/npm/dataverse-client-javascript

## API Config
## Initialization

In order for the package to connect to the Dataverse API, there is an `APIConfig` object that should be initialized to set the preferred authentication mechanism with the associated credentials for connecting to the Dataverse API.

Currently, the supported authentication mechanisms are:

- API Key: The recommended mechanism and the original one from the initial package versions. The API Key should correspond to a particular Dataverse user.

- Session Cookie: This is an experimental feature primarily designed for Dataverse SPA development. It is necessary to enable the corresponding feature flag in the Dataverse installation (See https://guides.dataverse.org/en/latest/installation/config.html?#feature-flags). It is recommended not to use this mechanism.

TODO
TODO

0 comments on commit 4e63e54

Please sign in to comment.