# swaggerToApi **Repository Path**: dingxiaolin/swagger-to-api ## Basic Information - **Project Name**: swaggerToApi - **Description**: 根据swaggerjson自动生成前端需要的接口和模型,非常强大,后期会支持定制 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-18 - **Last Updated**: 2023-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hocoro [![npm version](https://badgen.net/npm/v/hocoro)](https://www.npmjs.com/package/hocoro) [![codecov](https://codecov.io/gh/Hrysa/hocoro/branch/master/graph/badge.svg)](https://codecov.io/gh/Hrysa/hocoro) [![Build Status](https://travis-ci.com/Hrysa/hocoro.svg?branch=master)](https://travis-ci.com/Hrysa/hocoro) simple data-mock server written with nodejs ## Installation ```shell npm i hocoro -g # or yarn global add hocoro ``` > and make sure you have right `PATH` environment ## Usage hocoro will watch all yml file in work directory (default is "`.`") run application with command blow ```shell hocoro CONFIG_FILE_DIR # specified port hocoro -p 8080 CONFIG_FILE_DIR ``` you can see the request information in terminal or visit url using `http://HOSTNAME:PORT/log/SCOPE` > scope is your config file name (without yml suffix). ## Configuration see [examples](./examples/)