All URIs are relative to https://localhost:7217
Method | HTTP request | Description |
---|---|---|
apiEmployeesGet | GET /api/Employees | |
apiEmployeesIdDelete | DELETE /api/Employees/{id} | |
apiEmployeesIdGet | GET /api/Employees/{id} | |
apiEmployeesIdPut | PUT /api/Employees/{id} | |
apiEmployeesPost | POST /api/Employees |
[Employee] apiEmployeesGet(opts)
import EmployeeEfCrud from 'employee_ef_crud';
let defaultClient = EmployeeEfCrud.ApiClient.instance;
// Configure API key authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oauth2.apiKeyPrefix = 'Token';
let apiInstance = new EmployeeEfCrud.EmployeesApi();
let opts = {
'name': "name_example", // String |
'role': new EmployeeEfCrud.UserRoles() // UserRoles |
};
apiInstance.apiEmployeesGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
name | String | [optional] | |
role | UserRoles | [optional] |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
apiEmployeesIdDelete(id)
import EmployeeEfCrud from 'employee_ef_crud';
let defaultClient = EmployeeEfCrud.ApiClient.instance;
// Configure API key authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oauth2.apiKeyPrefix = 'Token';
let apiInstance = new EmployeeEfCrud.EmployeesApi();
let id = 56; // Number |
apiInstance.apiEmployeesIdDelete(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Employee apiEmployeesIdGet(id)
import EmployeeEfCrud from 'employee_ef_crud';
let defaultClient = EmployeeEfCrud.ApiClient.instance;
// Configure API key authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oauth2.apiKeyPrefix = 'Token';
let apiInstance = new EmployeeEfCrud.EmployeesApi();
let id = 56; // Number |
apiInstance.apiEmployeesIdGet(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
apiEmployeesIdPut(id, opts)
import EmployeeEfCrud from 'employee_ef_crud';
let defaultClient = EmployeeEfCrud.ApiClient.instance;
// Configure API key authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oauth2.apiKeyPrefix = 'Token';
let apiInstance = new EmployeeEfCrud.EmployeesApi();
let id = 56; // Number |
let opts = {
'employee': new EmployeeEfCrud.Employee() // Employee |
};
apiInstance.apiEmployeesIdPut(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
employee | Employee | [optional] |
null (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
Employee apiEmployeesPost(opts)
import EmployeeEfCrud from 'employee_ef_crud';
let defaultClient = EmployeeEfCrud.ApiClient.instance;
// Configure API key authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//oauth2.apiKeyPrefix = 'Token';
let apiInstance = new EmployeeEfCrud.EmployeesApi();
let opts = {
'employee': new EmployeeEfCrud.Employee() // Employee |
};
apiInstance.apiEmployeesPost(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
employee | Employee | [optional] |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json