Giter Club home page Giter Club logo

comb-server-test's Introduction

#接口: ##一、path设置接口 /expectation POST body: { "path":接口, "statusCode":返回状态码, "delay":响应时间, "method":http方法 } eg: body: { "path":"test", "statusCode":200, "delay":100, "method":"post" } return: { "msg": "add path success,config:path=test;method=post;code=200;delay=100", "code": 200 }

##二、查询所有已配置path /map GET return: { "pathMap": { "posttest": { "path": "test", "statusCode": 200, "delay": 100, "method": "post" } }, "code": 200 }

##三、测试配置接口 /{path}?delay=10000&code=200 (如果不传delay或code则用接口配置默认delay/code)

GET接口: &data={ "requestType":对外请求类型(jdbc或http), "dataType":数据类型(jdbc:query,update;http:get,post), "url":对外请求url, "body":对外请求数据(http:请求body或者data参数;jdbc:sql语句) } eg: GET test?delay=100&code=200&data={ "requestType":"jdbc", "dataType":"query", "url":"jdbc:mysql://localhost:3306/test_ddb?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true", "body":"show tables;" }

GET test?delay=100&code=200&data={ "requestType":"http", "dataType":"post", "url":"localhost:8080/test?delay=100&code=200", "body":"" }

POST接口: 参数类型解释同上

eg: POST test?delay=100&code=200 body:{ "requestType":"jdbc", "dataType":"query", "url":"jdbc:mysql://localhost:3306/test_ddb?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true", "body":"show tables;" }

return: { "delay": 10000, "code": 210 }

comb-server-test's People

Contributors

kentzhong31 avatar quietcrow avatar sanqianaa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.