0
README.md https://github.com/swagger-api/swagger-nodeには「タイヤをキックする」と記載されています。あなたのAPIは編集中に生きています(コードはありませんでしたか?) - >次のステップで「偽造をやめる」。スワッガーノードを使用したスワッガー偽API
私はSwaggerが私のために偽のAPIを生成するという印象を受けました。 しかし、私は、このようなswagger.yaml使用する場合は、:
swagger: '2.0'
info:
title: test
description: test
version: "1.0.0"
host: localhost:10010
schemes:
- https
basePath: /api
produces:
- application/json
- text/event-stream
consumes:
- application/json
paths:
/pages:
get:
summary: test
description: test
responses:
200:
description: pages
schema:
type: array
items:
$ref: '#/definitions/Page'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
(定義はまた、設定に記載されている場合)
を私は両方curl http://localhost:10010/api/pages
404を受信して闊歩エディタ(swagger project edit
)。私はx-swagger-router-controllerに関することを知っていますが、私はそれを箱から出すことを期待していました。私は何か間違っているのですか?