API Code Generation

50 %
50 %
Information about API Code Generation

Published on February 16, 2014

Author: bpedro

Source: slideshare.net


How to generate nodejs API consumer code from a Postman collections, with the help of the API Blueprint.

Bruno Pedro 13 February 2014 BarcelonaJS API Code Generation http://www.flickr.com/photos/iprozac/3609806359/

Bruno Pedro Web and Cloud Computing Technologist with over ten years’ experience. CTO of GetApp. Editor at APIUX.com. http://brunopedro.com/

Summary • Postman • API Blueprint • Code generation • Questions

Postman • Powerful HTTP client • Chrome application • Advanced request builder • History, Collections, Authentication, Documentation, …








API Blueprint • Web API Language • Markdown syntax • Documentation + method description • Powerful tooling
 http://apiblueprint.org/ !

API Blueprint • Testing with Dredd
 • HTML docs with aglio
 • Mock server with Contractor

API Blueprint

API Blueprint

Code Generation

Code Generation • collection
 • markdown
 • functions

Code Generation • collection
 • markdown
 nodeunit • functions

postman2apiblueprint • Reads Postman collection JSON • API endpoints • HTTP methods (GET, POST, etc) • Headers • Parameters
 • Converts to API Blueprint


apiblueprint2nodejs • Reads API Blueprint markdown • Uses protagonist • Converts markdown into JSON
 • Generates nodejs code from JSON !


Future work • Explore Postman Collection runner • Richer output to API Blueprint • Better code generation • Reverse operation?

Questions? Thank you!

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

QR code API

QR code API. You can generate and decode / read QR code graphics with our QR code generator web API at api.qrserver.com. Important features.
Read more

Code Generation and T4 Text Templates - msdn.microsoft.com

API Reference for T4 Text Templates. TOC ... Weitere Informationen finden Sie unter Design-Time Code Generation by using T4 Text Templates.
Read more

WebApi C# Proxy Generator - github.com

Note: This package requires the libraries of ASP.NET Web API Client (version 5.2 or higher) Generation. Note: The automatic generation of code upon project ...
Read more

C#/Web API Code Generation Patterns for the RAML User

In this article, Jonathan Allen outlines the design patterns that users of REST specification languages such as RAML, Swagger, and API Blueprint should ...
Read more

APIMATIC - Code Generation as a Service™

Code Generation as a Service™ Keeping your SDKs and API in-sync has never been more simpler with our CGasS API in your CI cycle
Read more

Comparison of Automatic API Code Generation Tools For ...

Comparison of Automatic API Code Generation Tools For Swagger 06 Jun 2015. I have met with the APIMATIC team several times over the last couple weeks to ...
Read more

API PLUG | Hassle-free API Generation, Management and ...

Get deployment-ready API codes and docker containers from your data source with a few clicks.
Read more

Swagger – The World's Most Popular Framework for APIs.

With a Swagger-enabled API, ... client SDK generation and discoverability. ... Turn an API spec into client SDKs or server-side code with Swagger Codegen.
Read more

GitHub - tomayac/rest-describe-and-compile: REST Describe ...

README.md REST Describe & Compile. This project's goal is to implement a compiler for meta descriptions of REST APIs. Currently the meta description ...
Read more