example
This commit is contained in:
47
example/clients/javascript/docs/GreetApi.md
Normal file
47
example/clients/javascript/docs/GreetApi.md
Normal file
@ -0,0 +1,47 @@
|
||||
# SwaggerJsClient.GreetApi
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**ping**](GreetApi.md#ping) | **GET** /user/ping |
|
||||
|
||||
|
||||
<a name="ping"></a>
|
||||
# **ping**
|
||||
> Object ping()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```javascript
|
||||
var SwaggerJsClient = require('swagger-js-client');
|
||||
|
||||
var apiInstance = new SwaggerJsClient.GreetApi();
|
||||
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
console.log('API called successfully. Returned data: ' + data);
|
||||
}
|
||||
};
|
||||
apiInstance.ping(callback);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**Object**
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
Reference in New Issue
Block a user