Skip to content

An APIs platform provides an API market and authorized APIs management for users. This project uses Node.js + React + Vite to implement a system based on Alibaba Cloud DataWorks DataService. (基于阿里云DataWorks数据服务建立一个API的市场,同时用户也能在上面申请API。)

License

datafe/api-market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro (Chinese)

看了一些API的管理平台如API Layer、boomi、Odoo等平台,思考如果自己动手搭建一个API授权平台是否困难,结果透过网上的资源就能搭建起一个简易且可扩展API授权平台,且大部份依赖的功能都可免费体验,分享这次搭建的代码跟使用到的工具,希望想要在公司内部建立自用的API授权平台能很快地实现。

Usage Documents

知乎 掘金 medium

Demo

Video Link

image

Intro

Building an API market, like API Layer,boomi, Odoo etc, is easy by using available cloud resources and tools. This project is a simple and extensible API authorization platform, which can be used by any company to build their own API authorization platform.

Guideline

Using guideline and code structure information https://developer.aliyun.com/article/1385779

Preparation

  1. Register an Alibaba cloud account link
  2. Applying an current unlimited-free-trial version of DataWorks link
  3. Goto develope an API in DataWorks DataService (registering APIs is free) link
  4. Preparing a linux server or subscribing an Linux server in Alibaba cloud link

Init Server

Initiate server dependencies

# needs to install Node.js first
npm install --global yarn
yarn install-server

Run Server

Please change AK info in ./server/OpenApiClient.js line 20-23 (AK Info)

web resources locate in ./client/dist

yarn start

open http://localhost:3001

Register Page

Register a new account and can see in API gateway management page (link).

image

image

Login Page

Using a account login and management.

image

API Market

Display available APIs in a market.

image

image

Authorized APIs

Users can see their APIs and remove subscriptions.

image

image

API Details

Display an API details including request parameters.

image

Authorized Information

Display login user's authorized information.

image

Use API

Using curl or postman to request APIs.

image

Deployment Server

Using self-built linux server and install Node.js and deploying above codes and run service. Or subscribing a linux server in Alibaba cloud link and deploying above codes and run service.

About

An APIs platform provides an API market and authorized APIs management for users. This project uses Node.js + React + Vite to implement a system based on Alibaba Cloud DataWorks DataService. (基于阿里云DataWorks数据服务建立一个API的市场,同时用户也能在上面申请API。)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published