Skip to content

Commit

Permalink
Merge pull request #3 from Squidex/new-parameters
Browse files Browse the repository at this point in the history
New endpoints.
  • Loading branch information
SebastianStehle authored Aug 20, 2024
2 parents 990e56b + e7f84d7 commit 3044f3b
Show file tree
Hide file tree
Showing 250 changed files with 11,313 additions and 5,244 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: php-actions/composer@v6

- name: Test - Start Compose
run: docker-compose up -d
run: docker compose up -d
working-directory: tests

- name: Test - RUN
Expand All @@ -34,5 +34,5 @@ jobs:

- name: Test - Cleanup
if: always()
run: docker-compose down
run: docker compose down
working-directory: tests
15 changes: 8 additions & 7 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ composer.json
lib/Api/AppsApi.php
lib/Api/AssetsApi.php
lib/Api/BackupsApi.php
lib/Api/CommentsApi.php
lib/Api/ContentsApi.php
lib/Api/DiagnosticsApi.php
lib/Api/EventConsumersApi.php
lib/Api/HistoryApi.php
lib/Api/JobsApi.php
lib/Api/LanguagesApi.php
lib/Api/NewsApi.php
lib/Api/NotificationsApi.php
lib/Api/PingApi.php
lib/Api/PlansApi.php
lib/Api/RulesApi.php
Expand Down Expand Up @@ -40,7 +39,6 @@ lib/Model/AppLanguagesDto.php
lib/Model/AppSettingsDto.php
lib/Model/ArrayCalculatedDefaultValue.php
lib/Model/ArrayFieldPropertiesDto.php
lib/Model/AskDto.php
lib/Model/AssetChangedRuleTriggerDto.php
lib/Model/AssetDto.php
lib/Model/AssetFolderDto.php
Expand All @@ -53,6 +51,9 @@ lib/Model/AssetType.php
lib/Model/AssetsDto.php
lib/Model/AssetsFieldPropertiesDto.php
lib/Model/AssignContributorDto.php
lib/Model/AuthSchemeDto.php
lib/Model/AuthSchemeResponseDto.php
lib/Model/AuthSchemeValueDto.php
lib/Model/AzureQueueRuleActionDto.php
lib/Model/BackupJobDto.php
lib/Model/BackupJobsDto.php
Expand All @@ -72,10 +73,8 @@ lib/Model/ChangePlanDto.php
lib/Model/ChangeStatusDto.php
lib/Model/ClientDto.php
lib/Model/ClientsDto.php
lib/Model/CommentDto.php
lib/Model/CommentRuleActionDto.php
lib/Model/CommentRuleTriggerDto.php
lib/Model/CommentsDto.php
lib/Model/ComponentFieldPropertiesDto.php
lib/Model/ComponentsFieldPropertiesDto.php
lib/Model/ConfigureFieldRulesDto.php
Expand All @@ -98,7 +97,6 @@ lib/Model/CurrentStorageDto.php
lib/Model/DateTimeCalculatedDefaultValue.php
lib/Model/DateTimeFieldEditor.php
lib/Model/DateTimeFieldPropertiesDto.php
lib/Model/DeepDetectRuleActionDto.php
lib/Model/DiscourseRuleActionDto.php
lib/Model/EditorDto.php
lib/Model/ElasticSearchRuleActionDto.php
Expand All @@ -118,7 +116,10 @@ lib/Model/GeolocationFieldPropertiesDto.php
lib/Model/HistoryEventDto.php
lib/Model/ImageFormat.php
lib/Model/ImportContentsDto.php
lib/Model/JobDto.php
lib/Model/JobLogMessageDto.php
lib/Model/JobStatus.php
lib/Model/JobsDto.php
lib/Model/JsonFieldPropertiesDto.php
lib/Model/LanguageDto.php
lib/Model/LogDownloadDto.php
Expand Down Expand Up @@ -152,6 +153,7 @@ lib/Model/ResourceLink.php
lib/Model/ResourcesDto.php
lib/Model/RestoreJobDto.php
lib/Model/RestoreRequestDto.php
lib/Model/RichTextFieldPropertiesDto.php
lib/Model/RoleDto.php
lib/Model/RolesDto.php
lib/Model/RuleActionDto.php
Expand Down Expand Up @@ -217,7 +219,6 @@ lib/Model/UpdateSettingDto.php
lib/Model/UpdateTeamDto.php
lib/Model/UpdateUserDto.php
lib/Model/UpdateWorkflowDto.php
lib/Model/UpsertCommentDto.php
lib/Model/UpsertSchemaDto.php
lib/Model/UpsertSchemaFieldDto.php
lib/Model/UpsertSchemaNestedFieldDto.php
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1-SNAPSHOT
7.8.0
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ try {
}
```

## Generation Config

To generate the config you have to execute the following steps.

1. Run a Squidex version locally.
2. Run the `/api/docs` URL to get the OpenAPI spec.
3. Copy the OpenAPI spec to this repository.
4. Run the generator:

```
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/openapi.json -g php --template-dir /local/templates -o /local/ -c /local/openapi-config.yml
```

## Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
Expand Down
Loading

0 comments on commit 3044f3b

Please sign in to comment.