All Projects → w-vi → Apib Mode

w-vi / Apib Mode

Licence: gpl-3.0
Emacs API Blueprint major mode

Projects that are alternatives of or similar to Apib Mode

emacs-mips-mode
An Emacs major mode for MIPS assembly code
Stars: ✭ 22 (-50%)
Mutual labels:  emacs-mode
Writegood Mode
Minor mode for Emacs to improve English writing
Stars: ✭ 369 (+738.64%)
Mutual labels:  emacs-mode
Snowboard
API blueprint toolkit
Stars: ✭ 723 (+1543.18%)
Mutual labels:  api-blueprint
mode-line-stats
A bunch of easy to set up stats for the Emacs mode-line.
Stars: ✭ 27 (-38.64%)
Mutual labels:  emacs-mode
Swift Mode
Emacs support for Apple's Swift programming language.
Stars: ✭ 308 (+600%)
Mutual labels:  emacs-mode
Drakov
Mock Server that implements the API Blueprint specification
Stars: ✭ 467 (+961.36%)
Mutual labels:  api-blueprint
blue bird
API Documentation Generator for the Phoenix Framework
Stars: ✭ 52 (+18.18%)
Mutual labels:  api-blueprint
Pmtoapib
Tool to convert Postman collection exports to Api Blueprint documentation
Stars: ✭ 34 (-22.73%)
Mutual labels:  api-blueprint
Protagonist
Protagonist is Node.js wrapper for the API Blueprint parser
Stars: ✭ 343 (+679.55%)
Mutual labels:  api-blueprint
Clj Refactor.el
A collection of Clojure refactoring functions for Emacs
Stars: ✭ 694 (+1477.27%)
Mutual labels:  emacs-mode
go-playground
GNU/Emacs mode that setup local Go playground for code snippets like play.golang.org or even better :)
Stars: ✭ 64 (+45.45%)
Mutual labels:  emacs-mode
Drafter
API Blueprint Parser (C++)
Stars: ✭ 286 (+550%)
Mutual labels:  api-blueprint
Deft
Deft for Emacs
Stars: ✭ 521 (+1084.09%)
Mutual labels:  emacs-mode
emacs-pug-mode
Pug support for Emacs, based on slim-mode.
Stars: ✭ 39 (-11.36%)
Mutual labels:  emacs-mode
Explorer
A web UI for CMT / ATOM account and transaction scanner
Stars: ✭ 18 (-59.09%)
Mutual labels:  api-blueprint
modern-sh
🎸 An Emacs minor mode for editing shell script.
Stars: ✭ 27 (-38.64%)
Mutual labels:  emacs-mode
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+8468.18%)
Mutual labels:  api-blueprint
Apidocs
API documentation for The Grid
Stars: ✭ 43 (-2.27%)
Mutual labels:  api-blueprint
Apib Editor
simple api-blueprint editor
Stars: ✭ 9 (-79.55%)
Mutual labels:  api-blueprint
Nyan Mode
Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!
Stars: ✭ 590 (+1240.91%)
Mutual labels:  emacs-mode
  • API Blueprint Emacs major mode

[[https://travis-ci.org/w-vi/apib-mode][https://travis-ci.org/w-vi/apib-mode.svg?branch=master]] [[https://melpa.org/#/apib-mode][file:https://melpa.org/packages/apib-mode-badge.svg]]

/This should one day be a full fledged Emacs major mode for editing API Blueprint./

apib-mode is a major mode for editing API Blueprint in Emacs. It is derived from markdown mode as API Blueprint is a special case of markdown. It adds couple of useful things when working with API Blueprint like getting parsing the API Blueprint and validating it. For this to work though you need to install the drafter executable first, please see [[https://github.com/apiaryio/drafter][drafter]] for more information.

Current status:

  • Extra highlighting
  • Parse and validation functions
  • Functions to extract JSON and JSON Schema from the API Blueprint
  • Some convenience functions for hooks
  • Tested on Emacs 24, 25 and 26

** Installation

apib-mode is available on [[https://melpa.org/][Melpa]]:

M-x package-install apib-mode

or just download it and put somewhere in your load path.

#+BEGIN_SRC elisp (autoload 'apib-mode "apib-mode" "Major mode for editing API Blueprint files" t) (add-to-list 'auto-mode-alist '("\.apib\'" . apib-mode)) #+END_SRC

** Usage

It has all the features of markdown mode. Visit [[http://jblevins.org/projects/markdown-mode/][markdown-mode]] to see the details. To validate your API Blueprint or see the parse result just C-c C-x v or C-c C-x p respectively. It also provides some convenience functions: apib-valid-p() which can be used in a hook for example, apib-get-json() and apib-get-json-schema() to get all json or json schema assets in buffer called apib-assets.

*** Keybindings | Key | Function | Description | |-----------+----------------------+----------------------------------| | C-c C-x p | apib-parse | Parse the API Blueprint | | C-c C-x v | apib-validate | Validate the API Blueprint | | C-c C-x j | apib-get-json | Print all generated JSON bodies | | C-c C-x s | apib-get-json-schema | Print all generated JSON Schemas |

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].