Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Cloud-Native Applications in Java

You're reading from   Cloud-Native Applications in Java Build microservice-based cloud-native applications that dynamically scale

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781787124349
Length 406 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (4):
Arrow left icon
 Olsson Olsson
Author Profile Icon Olsson
Olsson
 Mahajan Mahajan
Author Profile Icon Mahajan
Mahajan
 Kumar Gupta Kumar Gupta
Author Profile Icon Kumar Gupta
Kumar Gupta
 S S
Author Profile Icon S
S
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
1. Introduction to Cloud-Native FREE CHAPTER 2. Writing Your First Cloud-Native Application 3. Designing Your Cloud-Native Application 4. Extending Your Cloud-Native Application 5. Testing Cloud-Native Applications 6. Cloud-Native Application Deployment 7. Cloud-Native Application Runtime 8. Platform Deployment – AWS 9. Platform Deployment – Azure 10. As a Service Integration 11. API Design Best Practices 12. Digital Transformation 1. Other Books You May Enjoy Index

API design concerns


The APIs are meant to be consumed and define how the API can be consumed. APIs specify the list of commands/operations as well as the format/schema of those commands that are required for interaction with the API.

When defining a REST API, the key abstraction of information is the resource. A resource is defined as a conceptual mapping to a set of entities. API design is centered around the resource that forms the nucleus of the design. Uniform Resource Identifier (URI), operations (using HTTP methods), and resource representations (JSON schema) are built keeping the resource in mind. It becomes very important to have the right abstraction of the resource to enable consumption, re-usability, and maintainability of the API.

The resource can point to a single entity or a collection of entities. For example, a product is a singular resource, whereas products are a collection of resources. We will cover the design guidelines at two levels:

  • How to identify the right level of...
lock icon The rest of the chapter is locked
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 £13.99/month. Cancel anytime
Visually different images