# vaccination_service_specification

> Codegen_for_vaccination_service

Latest version **1.0.0** (published 2019-03-26) · Unlicense license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install vaccination_service_specification
pnpm add vaccination_service_specification
yarn add vaccination_service_specification
bun add vaccination_service_specification
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-03-26 |
| First published | 2019-03-26 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 91.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | azafirov |

## Links

- npm: https://www.npmjs.com/package/vaccination_service_specification
- npm.io page: https://npm.io/package/vaccination_service_specification

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) 3.7.0

## Recent versions

- 1.0.0 (latest) — 2019-03-26

## README

# vaccination_service_specification

VaccinationServiceSpecification - JavaScript client for vaccination_service_specification
Codegen for vaccination service
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install vaccination_service_specification --save
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing 
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

Finally, switch to the directory you want to use your vaccination_service_specification from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

You should now be able to `require('vaccination_service_specification')` in javascript files from the directory you ran the last 
command above from.

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually 
use this library):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var VaccinationServiceSpecification = require('vaccination_service_specification');

var api = new VaccinationServiceSpecification.VaccinationApi()
var vaccinationRequestBody = new VaccinationServiceSpecification.VaccinationRequestBody(); // {VaccinationRequestBody} Vaccination body that need to be saved

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addNewVaccination(vaccinationRequestBody, callback);

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*VaccinationServiceSpecification.VaccinationApi* | [**addNewVaccination**](docs/VaccinationApi.md#addNewVaccination) | **POST** /vaccination | Add new Vaccination
*VaccinationServiceSpecification.VaccinationApi* | [**getVaccination**](docs/VaccinationApi.md#getVaccination) | **GET** /vaccination/{id} | Retrieves Vaccination by id
*VaccinationServiceSpecification.VaccinationApi* | [**getVaccinations**](docs/VaccinationApi.md#getVaccinations) | **GET** /vaccination | Retrieves Vaccinations by person
*VaccinationServiceSpecification.VaccinationApi* | [**updateVaccinationStatus**](docs/VaccinationApi.md#updateVaccinationStatus) | **PUT** /vaccination/{id}/status | Updates Vaccination Status
*VaccinationServiceSpecification.VaccineApi* | [**getVaccines**](docs/VaccineApi.md#getVaccines) | **GET** /vaccine | Retrieves Vaccines


## Documentation for Models

 - [VaccinationServiceSpecification.Language](docs/Language.md)
 - [VaccinationServiceSpecification.Translation](docs/Translation.md)
 - [VaccinationServiceSpecification.UpdateVaccinationStatusRequestBody](docs/UpdateVaccinationStatusRequestBody.md)
 - [VaccinationServiceSpecification.Vaccination](docs/Vaccination.md)
 - [VaccinationServiceSpecification.VaccinationRequestBody](docs/VaccinationRequestBody.md)
 - [VaccinationServiceSpecification.VaccinationStatus](docs/VaccinationStatus.md)
 - [VaccinationServiceSpecification.Vaccine](docs/Vaccine.md)


## Documentation for Authorization

 All endpoints do not require authorization.

---
_Source: https://npm.io/package/vaccination_service_specification · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
