Coder Social home page Coder Social logo

pontjs / pontx Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 3.0 5.31 MB

OpenAPI full lifecycle management

Home Page: https://www.pontxapi.com

License: MIT License

JavaScript 4.46% HTML 0.27% CSS 0.22% TypeScript 91.10% Less 3.25% Shell 0.28% SCSS 0.43%
generate lifecycle management mocks oas openapi pont sdk swagger ts

pontx's Introduction

Pontx

Pontx

Pontx is a lightweight pluggable API management tools by Pontx API Spec, which inherit OAS2 compatibility.

Pontx provides service by Pontx CLI、Pontx VSCode IDE Extension and Web Platform(WIP).

Features

  • SDK generating. Pontx generate most popular style SDK like SWR by built-in SDK generate plugin.
  • API Mocks. Pontx will generate mocking data automatically. Pontx SDK will return mocks data through Pontx configuration.
  • API changement manage. Pontx will generate API changement report in detail, and you can update your local Pontx API Spec by select granularly changement.
  • API documentation. View clearest and elaborate API documentation in IDE.
  • API searching. Searching API in IDE and then insert snippets or view documentation.
  • API design. Writing Pontx API Spec with real-time documentation preview. Pontx API Spec can be managed by git automatically.
  • API debug Support API Debugger in IDE

All lifecle features can be highly customed with Pontx plugin. Pontx Plugin Development Guide

English | 简体中文

Quick Start

Config a valid pontx-config.json in your project, and pontx will automatically activated.

Pontx Configuration

Configuration Sample

// pontx-config.json
{
  "outDir": "../src/pontx-services",
  "plugins": {
    // pontx built-in plugin or your custom plugin
  },
  "origins": [{
    // Pontx support mulitple origins in one project.
    // Pontx support OAS2、OAS3 origin by default. You can contribute Pontx Parse Plugin to support other type of origin.
    "name": "name1",
    "url": "myhost/v2/api-docs.json"
  }, {
    "name": "name2",
    "envs": {
      "daily": "my-daily-host/v2/api-docs.json",
      "pre": "my-pre-host/v2/api-docs.json",
      "prod": "myhost/v2/api-docs.json",
    },
    "env": "prod"
  }]
}

For more Pontx Configuration detail, see the Pontx Configuration Guide.

Usage

VSCode Extension Guide

Pontx VSCode Extension

Version Installs Ratings

  • Extension UI Guide

VSCode Extension Guide

  • API changes management

API changement manage

  • API Searching

API Serching

For more Pontx VSCode Extension details, see the Pontx VSCode Extension Guide.

Pontx CLI Guide

Installation
npm i pontx-cli -g
Guide
  • pontx generate Fetch Origin API Spec and generate SDK.

pontx's People

Contributors

barryzhan avatar gaokun avatar jasonhzq avatar leon1zhu avatar mu-kang avatar yuu2lee4 avatar yuxuan-ctrl 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

Watchers

 avatar  avatar  avatar

pontx's Issues

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.