mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 18:32:43 +00:00
[ObjC] minor code style enhancement to ObjC API client (#4437)
* minor code style enhancement to objc api client * update petstore sample * remove datatype from docstring (objc)
This commit is contained in:
@@ -246,14 +246,14 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond
|
||||
```objc
|
||||
SWGConfiguration *apiConfig = [SWGConfiguration sharedConfig];
|
||||
|
||||
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||
|
||||
// Configure API key authorization: (authentication scheme: api_key)
|
||||
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
|
||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];
|
||||
|
||||
// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
|
||||
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
|
||||
|
||||
|
||||
NSNumber* petId = @789; // ID of pet that needs to be fetched
|
||||
|
||||
@@ -283,7 +283,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Authorization
|
||||
|
||||
[petstore_auth](../README.md#petstore_auth), [api_key](../README.md#api_key)
|
||||
[api_key](../README.md#api_key), [petstore_auth](../README.md#petstore_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -447,7 +447,7 @@ Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**petId** | **NSNumber***| ID of pet to update |
|
||||
**additionalMetadata** | **NSString***| Additional data to pass to server | [optional]
|
||||
**file** | **NSURL*****NSURL***| file to upload | [optional]
|
||||
**file** | **NSURL***| file to upload | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user