# CorsLab.StudentsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**studentsDeleteStudent**](StudentsApi.md#studentsDeleteStudent) | **DELETE** /api/Students/{id} | 
[**studentsGetStudent**](StudentsApi.md#studentsGetStudent) | **GET** /api/Students/{id} | 
[**studentsGetStudents**](StudentsApi.md#studentsGetStudents) | **GET** /api/Students | 
[**studentsPostStudent**](StudentsApi.md#studentsPostStudent) | **POST** /api/Students | 
[**studentsPutStudent**](StudentsApi.md#studentsPutStudent) | **PUT** /api/Students/{id} | 


<a name="studentsDeleteStudent"></a>
# **studentsDeleteStudent**
> Student studentsDeleteStudent(id)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.StudentsApi();

var id = 56; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.studentsDeleteStudent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**|  | 

### Return type

[**Student**](Student.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json

<a name="studentsGetStudent"></a>
# **studentsGetStudent**
> Student studentsGetStudent(id)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.StudentsApi();

var id = 56; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.studentsGetStudent(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**|  | 

### Return type

[**Student**](Student.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json

<a name="studentsGetStudents"></a>
# **studentsGetStudents**
> [Student] studentsGetStudents()



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.StudentsApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.studentsGetStudents(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**[Student]**](Student.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json

<a name="studentsPostStudent"></a>
# **studentsPostStudent**
> Student studentsPostStudent(student)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.StudentsApi();

var student = new CorsLab.Student(); // Student | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.studentsPostStudent(student, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **student** | [**Student**](Student.md)|  | 

### Return type

[**Student**](Student.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="studentsPutStudent"></a>
# **studentsPutStudent**
> studentsPutStudent(id, student)



### Example
```javascript
var CorsLab = require('cors_lab');

var apiInstance = new CorsLab.StudentsApi();

var id = 56; // Number | 

var student = new CorsLab.Student(); // Student | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.studentsPutStudent(id, student, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Number**|  | 
 **student** | [**Student**](Student.md)|  | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: Not defined

