Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning Behavior-driven development with Javascript

You're reading from   Learning Behavior-driven development with Javascript Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784392642
Length 392 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Enrique Javier A Rubio Enrique Javier A Rubio
Author Profile Icon Enrique Javier A Rubio
Enrique Javier A Rubio
Arrow right icon
View More author details
Toc

The approach


We have already coded a feature for the myCafé application; now, we have been asked to publish this feature as a web API. Business thinks that other parties can build nice applications on top of it, and IT thinks that we can integrate the order subsystem as a microservice inside the company.

Note

If you are new to restful web API's design, you can get an introduction to it in RESTful Java Patterns and Best Practices, available at https://www.packtpub.com/application-development/restful-java-patterns-and-best-practices.

As an industry, it is a good practice to publish our logic as a REST service that follows the hypermedia approach. For this, we can use a standard mime type called application/hal+json; this is simply known as HAL.

Note

If you want to know the exact details of HAL, you could read the standard documentation at http://tools.ietf.org/html/draft-kelly-json-hal-06.

Basically, we need to create a web server that receives a GET HTTP request for the order, calls the display...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Behavior-driven development with Javascript
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon