-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.93 KB
/
openapi.yml
File metadata and controls
43 lines (37 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: OpenApi Client Build
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build API Clients
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Commented because it was generated locally with a fixed version of openapi generator
## Tmp local command: docker run --rm -v "${PWD}:/local" openapi-generator:snake_case generate -g php -o /local/KeycloakApi -i https://www.keycloak.org/docs-api/latest/rest-api/openapi.yaml --skip-validate-spec --additional-properties invokerPackage=WebMI\\KeycloakApiClient\\KeycloakApi,methodNamingConvention=snake_case
#- name: Generate Authentication API
# uses: openapi-generators/openapitools-generator-action@v1
# with:
# generator: php
# openapi-url: https://www.keycloak.org/docs-api/latest/rest-api/openapi.yaml
# command-args: --skip-validate-spec --additional-properties invokerPackage="WebMI\\\\KeycloakApiClient\\\\KeycloakApi",methodNamingConvention=snake_case -o ./KeycloakApi
## Tmp local command: docker run --rm -v "${PWD}:/local" openapi-generator:snake_case generate -g php -o /local/CustomApi -i /local/custom.yaml --skip-validate-spec --additional-properties invokerPackage=WebMI\\KeycloakApiClient\\CustomApi,methodNamingConvention=snake_case
#- name: Generate Custom API
# uses: openapi-generators/openapitools-generator-action@v1
# with:
# generator: php
# openapi-file: './custom.yaml'
# command-args: --skip-validate-spec --additional-properties invokerPackage="WebMI\\\\KeycloakApiClient\\\\CustomApi",methodNamingConvention=snake_case -o ./CustomApi
#- name: Commit APIs
# run: |
# git add .
# git config --global user.name 'Web-MI'
# git config --global user.email '[email protected]'
# git commit -am "Updated APIs"
# git push