Coder Social home page Coder Social logo

api-definitions's Introduction

Rebilly OpenAPI Definitions

changes

TBD: Add Redocly validation status badge.

Links

Contributing

Read our contribution guide.

Environment setup

If you use VS Code, use the Redocly VS Code extension to edit this repo and get inline lint feedback and previews.

Install

  1. Install Node JS (version 14 or more recent)
  2. Clone repo and run npm ci in the repo root

Usage

Preview

This process describes how to start a development server docs preview for the Rebilly API docs. Changes made to the API specification while the development server is running are immediately displayed in the docs preview.

Rebilly uses Redocly to generate, manage, and preview API docs.

  1. In a terminal, install the Redocly CLI.
    Use this command to install the package globally on your machine: npm install @redocly/cli -g
  2. Sign in or create a Redocly account.
    If you are a Rebilly employee, sign in using SSO and your Rebilly email address.
  3. In Redocly, in the top right of the screen, click your name, then click My profile.
  4. In the Personal API keys section, click Add API key.
  5. Enter an API key name, then click Save.
  6. Copy the API key.
  7. In a terminal, execute the following command: redocly login.
  8. When prompted, paste your API key.
  9. Execute one of the following commands to start a development server docs preview:
    • Core API docs: redocly preview-docs core@latest
    • All API docs: redocly preview-docs all@latest
  10. In a web browser, open the preview server URL that is displayed in the terminal.

Build

Run npm run build to bundle the definitions into a single file in the dist folder.

Validate

Run npx redocly lint to validate the definitions.

api-definitions's People

Contributors

ashkarpetin avatar adamaltman avatar noon-dawg avatar justnero avatar vladimirrebilly avatar xaossintez avatar colinbird avatar dara123 avatar viceromag avatar jvc9109 avatar slavcodev avatar i-yasko avatar nanobash avatar swilczynski avatar 2e3s avatar subenson avatar mikerebilly avatar lexerom avatar ninjasimon avatar smoliyy avatar iamdevice avatar dependabot[bot] avatar n-fasano avatar vykhrystiuk avatar weetbix avatar mclassic avatar wmdmgv avatar ptrofimov avatar mathewsonke avatar vova07 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.