Can i use swagger test pattern with non nodejs app?

I am working on creating an api test suite for a php application. Now the application uses the swagger annotation, and I can easily create swagger.json. But, looking at the swagger test pattern , does it look like I should first create a nodejs application using swagger node? Is there a way to skip this step and use the php application instead?

Editing: I already have the tools for the charge and start using swagger-php. Just wondering if you can use the swagger test pattern without using the swagger node.

+2
source share
5 answers

. ( , )

Github, ! , . , . , , .

: , Node.js API swagger- node.

: STT, Node.js Node.js, . . Readme , . , API Node.js , STT, HTTP-. Node.js, , (localhost: 1337, my.api.test.net), . , mocha, Node.js test runner/framework. Node.js, .

+4

, , .

, , , , .

: , API Node.js.

: API Node.js STT , HTTP-. Node.js (), (localhost: 1337, my.api.test.net) . , , Node.js /. , Node.js, .

+1

nodejs, "swagger-codegen" -: swagger → Silex PHP.

0

API PHP, Swagger Codegen, (), .

, README.md

0

You can definitely do this. Go to https://github.com/swagger-api/swagger-uidownload zip. The mail file has a folder dist. This is all you need to develop swagger documents on your API server. Include this folder in your server directory along with the php code. Inside distthere is index.html and swagger.json. You can modify these two files to create your own documents and test your API.

-1
source

Source: https://habr.com/ru/post/1655353/


All Articles