GithubHelp home page GithubHelp logo

thenorthmemory / wechat-swagger Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 0.0 1.46 MB

the wechat' server side API documentation

Home Page: https://thenorthmemory.github.io/wechat-swagger/

License: MIT License

Shell 52.30% Dockerfile 47.70%
wechat swagger docker nginx yaml wxpay

wechat-swagger's Introduction

微信服务端接口文档

基于 Swagger 2.0 版本的微信服务端接口文档及工具,配合 swagger-ui 可作为本地开发者调试工具。

说明

  1. 纯开发者文档,请访问这里
  2. 因 javascript 存在 CORS 限制,如若想使此文档用作调试工具,需要配合简单反向代理服务器,如 nginx,简单配置即可在本地测/调 500+ 开放接口。
  3. 微信广告服务商 使用了另外一套签名方法,本项目也提供了透明代理解决方案,需使用 openresty 配合环境变量运行。

容器

docker run -d -e TSA_AGENCY_ID=$TSA_AGENCY_ID TSA_AGENCY_APIKEY=$TSA_AGENCY_APIKEY --rm -p7788:7788 thenorthmemory/wechat-swagger

本地Docker容器运行时

  1. docker pull openresty/openresty:alpine
  2. docker run --rm --name wechat-swagger -d -e TSA_AGENCY_ID=$TSA_AGENCY_ID TSA_AGENCY_APIKEY=$TSA_AGENCY_APIKEY -v $PWD/docs:/app -v $PWD/src/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf -p7788:7788 openresty/openresty:alpine nginx
  3. open a browser, visit the http://127.0.0.1:7788

Enjoy!

MIT license.

wechat-swagger's People

Contributors

thenorthmemory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.