Skip to content

Commit

Permalink
feat: tidy all method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjit2003 committed Nov 5, 2022
1 parent 6d89c00 commit 0f58258
Show file tree
Hide file tree
Showing 25 changed files with 794 additions and 554 deletions.
24 changes: 12 additions & 12 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ docs/GroupUpdateDescriptionPayload.md
docs/GroupUpdateNamePayload.md
docs/GroupUpdateParticipantsPayload.md
docs/InstanceApi.md
docs/InstancesInstanceKeyGroupsGroupIdProfilePicPutRequest.md
docs/InstancesInstanceKeySendAudioPostRequest.md
docs/InstancesInstanceKeySendDocumentPostRequest.md
docs/InstancesInstanceKeySendImagePostRequest.md
docs/InstancesInstanceKeySendUploadPostRequest.md
docs/InstancesInstanceKeySendVideoPostRequest.md
docs/ListItem.md
docs/ListMessagePayload.md
docs/ListSection.md
Expand All @@ -30,11 +24,17 @@ docs/MessageSendingApi.md
docs/MiscellaneousApi.md
docs/PollMessagePayload.md
docs/ReplyButton.md
docs/SendAudioRequest.md
docs/SendDocumentRequest.md
docs/SendImageRequest.md
docs/SendMediaPayload.md
docs/SendVideoRequest.md
docs/SetGroupPictureRequest.md
docs/TemplateButton.md
docs/TemplateButtonPayload.md
docs/TemplateButtonWithMediaPayload.md
docs/TextMessage.md
docs/UploadMediaRequest.md
docs/UserInfoPayload.md
docs/WebhookPayload.md
git_push.sh
Expand All @@ -46,12 +46,6 @@ src/apis/message_sending_api.rs
src/apis/miscellaneous_api.rs
src/apis/mod.rs
src/lib.rs
src/models/_instances__instance_key__groups__group_id__profile_pic_put_request.rs
src/models/_instances__instance_key__send_audio_post_request.rs
src/models/_instances__instance_key__send_document_post_request.rs
src/models/_instances__instance_key__send_image_post_request.rs
src/models/_instances__instance_key__send_upload_post_request.rs
src/models/_instances__instance_key__send_video_post_request.rs
src/models/api_response.rs
src/models/button_message_payload.rs
src/models/button_message_with_media_payload.rs
Expand All @@ -70,10 +64,16 @@ src/models/location_message_payload_location.rs
src/models/mod.rs
src/models/poll_message_payload.rs
src/models/reply_button.rs
src/models/send_audio_request.rs
src/models/send_document_request.rs
src/models/send_image_request.rs
src/models/send_media_payload.rs
src/models/send_video_request.rs
src/models/set_group_picture_request.rs
src/models/template_button.rs
src/models/template_button_payload.rs
src/models/template_button_with_media_payload.rs
src/models/text_message.rs
src/models/upload_media_request.rs
src/models/user_info_payload.rs
src/models/webhook_payload.rs
96 changes: 48 additions & 48 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/BusinessManagementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**instances_instance_key_business_catalog_get**](BusinessManagementApi.md#instances_instance_key_business_catalog_get) | **GET** /instances/{instance_key}/business/catalog | Fetches the catlog.
[**fetch_catlog**](BusinessManagementApi.md#fetch_catlog) | **GET** /instances/{instance_key}/business/catalog | Fetches the catlog.



## instances_instance_key_business_catalog_get
## fetch_catlog

> crate::models::ApiResponse instances_instance_key_business_catalog_get(instance_key)
> crate::models::ApiResponse fetch_catlog(instance_key)
Fetches the catlog.

Gets list of all products registered by you.
Expand Down
198 changes: 99 additions & 99 deletions docs/GroupManagementApi.md

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions docs/InstanceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,31 @@ All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**instances_create_get**](InstanceApi.md#instances_create_get) | **GET** /instances/create | Creates a new instance key.
[**instances_instance_key_contacts_get**](InstanceApi.md#instances_instance_key_contacts_get) | **GET** /instances/{instance_key}/contacts | Get contacts.
[**instances_instance_key_delete_delete**](InstanceApi.md#instances_instance_key_delete_delete) | **DELETE** /instances/{instance_key}/delete | Delete Instance.
[**instances_instance_key_get**](InstanceApi.md#instances_instance_key_get) | **GET** /instances/{instance_key}/ | Get Instance.
[**instances_instance_key_logout_delete**](InstanceApi.md#instances_instance_key_logout_delete) | **DELETE** /instances/{instance_key}/logout | Logout Instance.
[**instances_instance_key_qrcode_get**](InstanceApi.md#instances_instance_key_qrcode_get) | **GET** /instances/{instance_key}/qrcode | Get QrCode.
[**instances_instance_key_webhook_put**](InstanceApi.md#instances_instance_key_webhook_put) | **PUT** /instances/{instance_key}/webhook | Change Webhook url.
[**instances_list_get**](InstanceApi.md#instances_list_get) | **GET** /instances/list | Get all instances.
[**change_webhook_url**](InstanceApi.md#change_webhook_url) | **PUT** /instances/{instance_key}/webhook | Change Webhook url.
[**create_instance**](InstanceApi.md#create_instance) | **GET** /instances/create | Creates a new instance key.
[**delete_instance**](InstanceApi.md#delete_instance) | **DELETE** /instances/{instance_key}/delete | Delete Instance.
[**get_contacts**](InstanceApi.md#get_contacts) | **GET** /instances/{instance_key}/contacts | Get contacts.
[**get_instance**](InstanceApi.md#get_instance) | **GET** /instances/{instance_key}/ | Get Instance.
[**get_qr_code**](InstanceApi.md#get_qr_code) | **GET** /instances/{instance_key}/qrcode | Get QrCode.
[**list_instances**](InstanceApi.md#list_instances) | **GET** /instances/list | Get all instances.
[**logout_instance**](InstanceApi.md#logout_instance) | **DELETE** /instances/{instance_key}/logout | Logout Instance.



## instances_create_get
## change_webhook_url

> crate::models::ApiResponse instances_create_get(instance_key)
Creates a new instance key.
> crate::models::ApiResponse change_webhook_url(instance_key, data)
Change Webhook url.

This endpoint is used to create a new WhatsApp Web instance.
Changes the webhook url of an instance.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**instance_key** | Option<**String**> | Insert instance key if you want to provide custom key | |
**instance_key** | **String** | Instance key | [required] |
**data** | [**WebhookPayload**](WebhookPayload.md) | Message data | [required] |

### Return type

Expand All @@ -39,25 +40,25 @@ Name | Type | Description | Required | Notes

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_contacts_get
## create_instance

> crate::models::ApiResponse instances_instance_key_contacts_get(instance_key)
Get contacts.
> crate::models::ApiResponse create_instance(instance_key)
Creates a new instance key.

Fetches the list of contacts in the instance.
This endpoint is used to create a new WhatsApp Web instance.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**instance_key** | **String** | Instance key | [required] |
**instance_key** | Option<**String**> | Insert instance key if you want to provide custom key | |

### Return type

Expand All @@ -75,9 +76,9 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_delete_delete
## delete_instance

> crate::models::ApiResponse instances_instance_key_delete_delete(instance_key)
> crate::models::ApiResponse delete_instance(instance_key)
Delete Instance.

Deletes the instance with the provided key.
Expand Down Expand Up @@ -105,12 +106,12 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_get
## get_contacts

> crate::models::ApiResponse instances_instance_key_get(instance_key)
Get Instance.
> crate::models::ApiResponse get_contacts(instance_key)
Get contacts.

Returns the instance data of single instance with connection status.
Fetches the list of contacts in the instance.

### Parameters

Expand All @@ -135,12 +136,12 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_logout_delete
## get_instance

> crate::models::ApiResponse instances_instance_key_logout_delete(instance_key)
Logout Instance.
> crate::models::ApiResponse get_instance(instance_key)
Get Instance.

Logouts of the instance with the provided key.
Returns the instance data of single instance with connection status.

### Parameters

Expand All @@ -165,9 +166,9 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_qrcode_get
## get_qr_code

> crate::models::ApiResponse instances_instance_key_qrcode_get(instance_key)
> crate::models::ApiResponse get_qr_code(instance_key)
Get QrCode.

Returns the qrcode in the base64 format.
Expand Down Expand Up @@ -195,20 +196,16 @@ Name | Type | Description | Required | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_instance_key_webhook_put
## list_instances

> crate::models::ApiResponse instances_instance_key_webhook_put(instance_key, data)
Change Webhook url.
> crate::models::ApiResponse list_instances()
Get all instances.

Changes the webhook url of an instance.
Fetches the list of all Instances with login status.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**instance_key** | **String** | Instance key | [required] |
**data** | [**WebhookPayload**](WebhookPayload.md) | Message data | [required] |
This endpoint does not need any parameter.

### Return type

Expand All @@ -220,22 +217,25 @@ Name | Type | Description | Required | Notes

### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## instances_list_get
## logout_instance

> crate::models::ApiResponse instances_list_get()
Get all instances.
> crate::models::ApiResponse logout_instance(instance_key)
Logout Instance.

Fetches the list of all Instances with login status.
Logouts of the instance with the provided key.

### Parameters

This endpoint does not need any parameter.

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**instance_key** | **String** | Instance key | [required] |

### Return type

Expand Down
Loading

0 comments on commit 0f58258

Please sign in to comment.