Download the PHP package h1025/cvoutput without Composer
On this page you can find all versions of the php package h1025/cvoutput. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package cvoutput
cvOutput
- hash validator でのバリデーションルールをもとに同等のデータ構造を持つクラスのC#コードを生成させる。
- namespaceやクラス名,extendなど固有の値を明示することになるため、hashRuleを拡張したルールを使用することで実現している。
~目次~
制限事項
対応フォーマット
使い方
C# ファイル作成
- Yamlファイルの記法に関して
API仕様書 作成
制限事項
UnityでHTTP通信を行う際のインターフェースを規定することを主目的としており、これに準じた制約が含まれている
対応フォーマット
hash validatorはPHPでの連想配列,jsonファイル,yamlファイルに対応していたが、本ツールではyamlのみ対応する
使い方
type一覧
- csharp
- C# ファイル作成
- md
- API仕様書 作成
C# ファイル作成
Yamlファイルの記法に関して
[ファイル名]
inputPathはディレクトリ指定 指定したディレクトリ以下の、ファイル名規則に沿ったファイル全てを対象とする
[ファイル名規則]
Request(Response).yml
[例]
inputPathで指定したディレクトリの1つ下のパスから、ファイル名を含めないファイルのパスまでをAPI名にする
-
ファイル構成
-
inputPath
-
クラス名
-
hogefugaRequest
- hogefugaResponse
-
- API名
hoge/fuga
API仕様書 作成
出力
- outputPath直下にAPI名、URL、key等が一覧になったREADME.mdとして出力されます。
All versions of cvoutput with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 7.4.0
mihoshi/hashvalidator Version 1.*
ext-yaml Version *
ext-json Version *
mihoshi/hashvalidator Version 1.*
ext-yaml Version *
ext-json Version *
The package h1025/cvoutput contains the following files
Loading the files please wait ...