Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

API Code Generation

8,696 views

Published on

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

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

API Code Generation

  1. 1. Bruno Pedro 13 February 2014 BarcelonaJS API Code Generation http://www.flickr.com/photos/iprozac/3609806359/
  2. 2. Bruno Pedro Web and Cloud Computing Technologist with over ten years’ experience. CTO of GetApp. Editor at APIUX.com. http://brunopedro.com/
  3. 3. Summary • Postman • API Blueprint • Code generation • Questions
  4. 4. Postman • Powerful HTTP client • Chrome application • Advanced request builder • History, Collections, Authentication, Documentation, …
 
 http://www.getpostman.com/
  5. 5. Postman
  6. 6. Postman
  7. 7. Postman
  8. 8. Postman
  9. 9. Postman
  10. 10. Postman
  11. 11. Postman
  12. 12. API Blueprint • Web API Language • Markdown syntax • Documentation + method description • Powerful tooling
 
 http://apiblueprint.org/ !
  13. 13. API Blueprint • Testing with Dredd
 
 • HTML docs with aglio
 
 • Mock server with Contractor
  14. 14. API Blueprint
  15. 15. API Blueprint
  16. 16. Code Generation
  17. 17. Code Generation • collection
 
 
 • markdown
 
 
 • functions
  18. 18. Code Generation • collection
 
 
 • markdown
 
 
 nodeunit • functions
  19. 19. postman2apiblueprint • Reads Postman collection JSON • API endpoints • HTTP methods (GET, POST, etc) • Headers • Parameters
 • Converts to API Blueprint
  20. 20. postman2apiblueprint
  21. 21. apiblueprint2nodejs • Reads API Blueprint markdown • Uses protagonist • Converts markdown into JSON
 
 • Generates nodejs code from JSON !
  22. 22. apiblueprint2nodejs
  23. 23. Future work • Explore Postman Collection runner • Richer output to API Blueprint • Better code generation • Reverse operation?
  24. 24. Questions? Thank you!

×