Skip to content

Commit

Permalink
update profile image endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko Heller committed Aug 1, 2024
1 parent c1c85ac commit 9bbdabb
Show file tree
Hide file tree
Showing 14 changed files with 164 additions and 52 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ composer.phar
.openapi-generator
.openapi-generator-ignore
git_push.sh
.openapi-generator
.openapi-generator-ignore
git_push.sh
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verdigado/gruene-api-client",
"version": "0.5.0",
"version": "0.6.0",
"description": "PHP client library for gruene api",
"keywords": [
"openapitools",
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/DivisionsApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verdigado\GrueneApiClient\DivisionsApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/HealthApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verdigado\GrueneApiClient\HealthApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/NbApiApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verdigado\GrueneApiClient\NbApiApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/OffboardingApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verdigado\GrueneApiClient\OffboardingApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
Expand Down
22 changes: 12 additions & 10 deletions docs/Api/ProfilesApi.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Verdigado\GrueneApiClient\ProfilesApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**createProfile()**](ProfilesApi.md#createProfile) | **POST** /v1/profiles | Create user profile |
| [**deleteProfile()**](ProfilesApi.md#deleteProfile) | **DELETE** /v1/profiles/{profileId} | Delete user profile |
| [**deleteProfileImage()**](ProfilesApi.md#deleteProfileImage) | **DELETE** /v1/profiles/{profileId}/image | Delete user profile image |
| [**findProfileTags()**](ProfilesApi.md#findProfileTags) | **GET** /v1/profiles-tags | List profile tags |
| [**findProfileTags()**](ProfilesApi.md#findProfileTags) | **GET** /v1/profile-tags | List profile tags |
| [**findProfiles()**](ProfilesApi.md#findProfiles) | **GET** /v1/profiles | Find user profiles |
| [**getOwnProfile()**](ProfilesApi.md#getOwnProfile) | **GET** /v1/profiles/self | Get the authenticated user's profile |
| [**getProfile()**](ProfilesApi.md#getProfile) | **GET** /v1/profiles/{profileId} | Get a user profile |
Expand Down Expand Up @@ -143,7 +143,7 @@ void (empty response body)
## `deleteProfileImage()`

```php
deleteProfileImage($profile_id)
deleteProfileImage($profile_id): \Verdigado\GrueneApiClient\models\Profile
```

Delete user profile image
Expand Down Expand Up @@ -173,7 +173,8 @@ $apiInstance = new Verdigado\GrueneApiClient\Api\ProfilesApi(
$profile_id = 'profile_id_example'; // string

try {
$apiInstance->deleteProfileImage($profile_id);
$result = $apiInstance->deleteProfileImage($profile_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->deleteProfileImage: ', $e->getMessage(), PHP_EOL;
}
Expand All @@ -187,7 +188,7 @@ try {

### Return type

void (empty response body)
[**\Verdigado\GrueneApiClient\models\Profile**](../Model/Profile.md)

### Authorization

Expand All @@ -196,7 +197,7 @@ void (empty response body)
### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
Expand Down Expand Up @@ -462,7 +463,7 @@ try {
## `updateProfile()`

```php
updateProfile($profile_id, $update_profile)
updateProfile($profile_id, $update_profile): \Verdigado\GrueneApiClient\models\Profile
```

Update user profile
Expand Down Expand Up @@ -495,7 +496,8 @@ $profile_id = 'profile_id_example'; // string
$update_profile = new \Verdigado\GrueneApiClient\models\UpdateProfile(); // \Verdigado\GrueneApiClient\models\UpdateProfile

try {
$apiInstance->updateProfile($profile_id, $update_profile);
$result = $apiInstance->updateProfile($profile_id, $update_profile);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProfilesApi->updateProfile: ', $e->getMessage(), PHP_EOL;
}
Expand All @@ -510,7 +512,7 @@ try {

### Return type

void (empty response body)
[**\Verdigado\GrueneApiClient\models\Profile**](../Model/Profile.md)

### Authorization

Expand All @@ -519,7 +521,7 @@ void (empty response body)
### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/UsersApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verdigado\GrueneApiClient\UsersApi

All URIs are relative to http://0.0.0.0:5000, except if the operation defines another base path.
All URIs are relative to https://api.gruene.de, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
Expand Down
6 changes: 3 additions & 3 deletions docs/Model/ProfilePrivacySettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**overall** | **string** | | [optional]
**email** | **string** | | [optional]
**chatbegruenung** | **string** | | [optional]
**overall** | **string** | |
**email** | **string** | |
**chatbegruenung** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion docs/Model/UpdateProfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**phone_numbers** | [**\Verdigado\GrueneApiClient\models\UpdatePhoneNumber[]**](UpdatePhoneNumber.md) | |
**messengers** | [**\Verdigado\GrueneApiClient\models\UpdateMessengerEntry[]**](UpdateMessengerEntry.md) | |
**social_media** | [**\Verdigado\GrueneApiClient\models\UpdateSocialMediaEntry[]**](UpdateSocialMediaEntry.md) | |
**tags** | **string[]** | List of tag ids |
**tags** | **string[]** | List of external tag ids |
**privacy** | [**\Verdigado\GrueneApiClient\models\ProfilePrivacySettings**](ProfilePrivacySettings.md) | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10 changes: 3 additions & 7 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ class Configuration
*
* @var string
*/
protected $host = 'http://0.0.0.0:5000';
protected $host = 'https://api.gruene.de';

/**
* User agent of the HTTP request, set to "OpenAPI-Generator/{version}/PHP" by default
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/0.5.0/PHP';
protected $userAgent = 'OpenAPI-Generator/0.6.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 0.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 0.5.0' . PHP_EOL;
$report .= ' SDK Package Version: 0.6.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down Expand Up @@ -472,10 +472,6 @@ public function getApiKeyWithPrefix($apiKeyIdentifier)
public function getHostSettings()
{
return [
[
"url" => "http://0.0.0.0:5000",
"description" => "localhost",
],
[
"url" => "https://api.gruene.de",
"description" => "Production",
Expand Down
Loading

0 comments on commit 9bbdabb

Please sign in to comment.