DigitaleKulturEvokeApiClientJs - JavaScript client for digitale-kultur/evoke-api-client-js
This API provides endpoints used by the Evoke demoparty website.
Imprint
Privacy Information
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 0.1.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For Node.js
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install digitale-kultur/evoke-api-client-js --save
If the library is hosted at a git repository, e.g.https://github.com/digitale-kultur/evoke-api-client-js then install it via:
npm install digitale-kultur/evoke-api-client-js --save
The library also works in the browser environment via npm and browserify. 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):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
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:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Please follow the installation instruction and execute the following JS code:
var DigitaleKulturEvokeApiClientJs = require('digitale-kultur/evoke-api-client-js');
var api = new DigitaleKulturEvokeApiClientJs.ContactApi()
var contactMessage = new DigitaleKulturEvokeApiClientJs.ContactMessage(); // {ContactMessage} Information about the message to be sent
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.createMessage(contactMessage, callback);
All URIs are relative to http://localhost/api
Class | Method | HTTP request | Description |
---|---|---|---|
DigitaleKulturEvokeApiClientJs.ContactApi | createMessage | POST /contact | Send a new message |
DigitaleKulturEvokeApiClientJs.ContactApi | showAllCategories | GET /contact/categories | Get a list of all contact categories |
DigitaleKulturEvokeApiClientJs.RegistrationApi | createRegistration | POST /registration/{year} | Create a new registration |
DigitaleKulturEvokeApiClientJs.RegistrationApi | deleteRegistration | DELETE /registration/{year}/{id} | Delete a single registration |
DigitaleKulturEvokeApiClientJs.RegistrationApi | numberOfRegistrations | GET /registration/{year}/count | Get the number of registrations |
DigitaleKulturEvokeApiClientJs.RegistrationApi | showAllCountries | GET /registration/countries | Get a list of countries |
DigitaleKulturEvokeApiClientJs.RegistrationApi | showAllRegistrations | GET /registration/{year} | Get a list of all registrations |
- DigitaleKulturEvokeApiClientJs.ContactCategory
- DigitaleKulturEvokeApiClientJs.ContactMessage
- DigitaleKulturEvokeApiClientJs.Registration
- DigitaleKulturEvokeApiClientJs.Rfc7807
All endpoints do not require authorization.