Giter Site home page Giter Site logo

usama1020 / api-specification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mikeralphson/api-specification-1

0.0 0.0 0.0 1.75 MB

All the OpenAPI specification files for the Nexmo APIs

Home Page: https://nexmo-api-specification.herokuapp.com/

License: MIT License

Ruby 1.84% Shell 30.15% JavaScript 68.01%

api-specification's Introduction

API Specifications

Nexmo is now known as Vonage

Provides OpenAPI Specification (v3) definitions for Nexmo APIs.

Human-readable specifications

View rendered API specifications

(Raw specification files are in definitions/)

About OpenAPI

These definitions provide a single point of truth that can be used end-to-end:

  • Planning Shared during product discussions for planning API functionality
  • Implementation Inform engineering during development
  • Testing As the basis for testing or mocking API endpoints
  • Documentation For producing thorough and interactive documentation
  • Tooling To generate server stubs and client SDKs.

Resources

Tools

  • Stoplight Studio - powerful spec editor with validation and local mock server
  • Nexmo OAS Renderer - Nexmo's tool for rendering OpenAPI specs to HTML.
  • Nexmo Developer - Nexmo Developer uses these specs and the renderer for the API reference pages.

Check your API spec for validity and style

We use Spectral to style and validity check our files. If you're using Stoplight Studio, this picks up our style definition by default. Otherwise, you can install the tool locally like this:

npm install -g @stoplight/spectral

And check your file (for example verify.yml):

spectral lint definitions/verify.yml

This runs the same checks that we use in the build that runs when you open a pull request.

In addition to semantic linting, we use Prettier to enforce consistent formatting.

To run prettier locally:

npm install -g prettier
prettier --list-different definitions/**/*.yml

You can auto-format your specifications with the following command, but we recommend installing a Prettier plugin in your IDE to format on save:

prettier --write definitions/**/*.yml

Contributing

Contributions are welcome, please follow GitHub Flow

api-specification's People

Contributors

mheap avatar adambutler avatar lornajane avatar tjlytle avatar chrisguzman avatar bdorry avatar mikeralphson avatar slorello89 avatar dependabot[bot] avatar sammachin avatar fabianrbz avatar hummusonrails avatar brittbarak avatar tommorris avatar hughhopkins avatar vshisterov avatar niati avatar tbedford avatar leggetter avatar alex-momotov avatar dragonmantank avatar obodriagovatvonagedotcom avatar pardel avatar timcraft avatar jonathanfarrow117 avatar javiermolsanz avatar adamczopp avatar ryanatnexmo avatar paperbag-zz avatar diegous 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.