All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
createRegistration | POST /registration/{year} | Create a new registration |
deleteRegistration | DELETE /registration/{year}/{id} | Delete a single registration |
numberOfRegistrations | GET /registration/{year}/count | Get the number of registrations |
showAllCountries | GET /registration/countries | Get a list of countries |
showAllRegistrations | GET /registration/{year} | Get a list of all registrations |
Registration createRegistration(year, registration)
Create a new registration
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.RegistrationApi();
let year = 2019; // Number | Year to query for
let registration = new DigitaleKulturEvokeApiClientJs.Registration(); // Registration | Information about the user to be added
apiInstance.createRegistration(year, registration, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
year | Number | Year to query for | |
registration | Registration | Information about the user to be added |
No authorization required
- Content-Type: application/json
- Accept: application/json
Object deleteRegistration(year, id, key)
Delete a single registration
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.RegistrationApi();
let year = 2019; // Number | Year to query for
let id = 1; // Number | ID to delete
let key = czC3BzTbyxHCNm1; // String | Hash to authenticate the deletion of this ID
apiInstance.deleteRegistration(year, id, key, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
year | Number | Year to query for | |
id | Number | ID to delete | |
key | String | Hash to authenticate the deletion of this ID |
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json
Number numberOfRegistrations(year)
Get the number of registrations
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.RegistrationApi();
let year = 2019; // Number | Year to query for
apiInstance.numberOfRegistrations(year, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
year | Number | Year to query for |
Number
No authorization required
- Content-Type: Not defined
- Accept: application/json
Object showAllCountries()
Get a list of countries
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.RegistrationApi();
apiInstance.showAllCountries((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Registration] showAllRegistrations(year)
Get a list of all registrations
import DigitaleKulturEvokeApiClientJs from 'digitale-kultur/evoke-api-client-js';
let apiInstance = new DigitaleKulturEvokeApiClientJs.RegistrationApi();
let year = 2019; // Number | Year to query for
apiInstance.showAllRegistrations(year, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
year | Number | Year to query for |
No authorization required
- Content-Type: Not defined
- Accept: application/json