SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
The Next Step to Build Better
APIs — Consistent Data
Structure
by Andrew Turner
https://by.dialexa.com/consistent-data-structures-the-next-step-to-building-an-api
Dialexa
We are on a mission to make every
company a great technology company.
We work with organizations to define and
execute digital transformation strategies to
improve business operations and customer
experiences. Our services include:
• Multi-Year Technology Roadmap
• Platform Engineering
• User Experience Design
• Custom Software Development
• Hardware Prototyping /IoT
You don’t build good
APIs through coding
alone. Like  any other
part of your business,
APIs are best when
they are developed as
part of a detailed,
end-to-end strategy.
Get the full write up of
this slideshare HERE
However, there are multiple
parts of a comprehensive
strategy and understanding
each piece is essential to
building better APIs.
Get the full write up of
this slideshare HERE
In our first post about APIs, we talked
about the need for a documentation-
first strategy and how 3 main tools can
help you build more effectively.
Get the full write up of
this slideshare HERE
The next natural step in the process is to
choose an appropriate data structure formatting
convention for API endpoint responses and
ensure it is applied consistently—here’s how.
Get the full write up of
this slideshare HERE
Understand Your API Use Case
Get the full write up of
this slideshare HERE
We talk a lot about
“starting with the why”
for product development—
starting small discovery
projects and using design
thinking to get to the heart
of the problem your
product will solve.
Get the full write up of
this slideshare HERE
Understanding the “why” is
also an important concept
when building APIs.
Get the full write up of
this slideshare HERE
The key is to determine your API use
case. Is the API for a mobile app? Is it
for front end use? Will it be public for
third party developers?
Get the full write up of
this slideshare HERE
The “why” of your API will help you
choose the right data structure convention
for development. However, there are many
different options to choose from.
Get the full write up of
this slideshare HERE
Common API Response
Formatting Conventions
Get the full write up of
this slideshare HERE
To read more you can find the full article at
https://by.dialexa.com/consistent-data-structures-the-
next-step-to-building-an-api
JSON API
JSON API is a community-driven specification for building
APIs and formatting API responses.
Get the full write up of
this slideshare HERE
EmberData
Ember is a framework for creating ambitious web applications.
If you're building an API for an Ember application, you may
want to consider using the EmberData convention for your API
responses.
Get the full write up of
this slideshare HERE
Core API
Another community-driven convention is Core API.
Get the full write up of
this slideshare HERE
Flat Response
This is a simple and straightforward way to format your data structure that
simply returns the data requested without a namespace object. Twitter and
GitHub are popular APIs that follow this data structure formatting convention.
Get the full write up of
this slideshare HERE
Seeking the pros and cons of
each data structure convention
seems like a logical next step
once you’ve listed your options.
Get the full write up of
this slideshare HERE
However, there is no single correct data structure
convention. You should choose a convention based
on what is pragmatic and intended for your API use case.
Get the full write up of
this slideshare HERE
It’s possible that a specific data structure convention would
work best for your API's use case—for example, Vinli’s
need to return telemetry data could command a different
convention than a project management API that returns
tasks and project updates.
Get the full write up of
this slideshare HERE
Generally, though,
keeping your data
structures
consistently
formatted will result
in a better API. 
Get the full write up of
this slideshare HERE
Get the full write up of
this slideshare HERE
When you establish
your data structure
convention from the
outset of your project,
you can better
coordinate the “why”
of your API and the
way you’re building it. 
Get the full write up of
this slideshare HERE
Then, you can
include the data
structure
convention in your
documentation
and use Dredd to
validate its use
throughout the
project.
Get the full write up of
this slideshare HERE
After you establish a formatting
convention for your API's data
structures, you should implement
meaningful HTTP status codes
to ensure your API responses are
accurate.
Get the full write up of
this slideshare HERE
Find out where great products come from!
Download or free eBook:
https://by.dialexa.com/dialexa-end-to-end-
development-guide-0
Status Codes Should Accurately
Reflect Your API Response
Get the full write up of
this slideshare HERE
As you use Dredd to validate your
data structure formatting, make
sure you use the appropriate
HTTP status code for each type
of response.
Get the full write up of
this slideshare HERE
However, because there are
so many HTTP status codes,
it is important to pay attention
to the right ones throughout
your development process.
Get the full write up of
this slideshare HERE
At a higher level, there are 4 main HTTP status code
categories:
• 200 Level: The HTTP 2xx codes convey successful responses.
• 300 Level: HTTP 3xx codes are reserved for redirects.
• 400 Level: This Block of codes conveys errors that originate on the client side.
• 500 Level: Similar to the 400 level codes, HTTP 5xx codes translate errors, but
on the server side instead.
Get the full write up of
this slideshare HERE
To give you a better idea of the specific codes any engineer should
know, we’ve compiled a list of the most important ones:
Get the full write up of
this slideshare HERE
By using these meaningful
status codes, you can
avoid sending 200 level
status codes when your
API is returning an error!
Get the full write up of
this slideshare HERE
You want your API
to be predictable and
easy to work with—
ensuring status
codes match the true
API response is
essential to building
a better API.
Get the full write up of
this slideshare HERE
There’s More to APIs and
Product Development Than
Consistent Data Structures
Get the full write up of
this slideshare HERE
You won’t be able to build an effective API without
proper documentation and consistent data structures.
Get the full write up of
this slideshare HERE
And you won’t be able to  succeed with
digital transformation projects if you
can’t build better APIs. However, there’s
much more to digital transformation
product development than just APIs.
Get the full write up of
this slideshare HERE
PROPERTY OF DIALEXA LLC ©2017 - CONFIDENTIAL & PROPRIETARY
Thank You
Doug Platts
VP of Marketing
marketing@dialexa.com
If you want to learn more about the product
development process and how your better
APIs fit into the bigger picture, download
our free ebook and discover how we
combine business and innovation consulting,
user experience design, software
engineering and hardware engineering to
create products that users love.
Get the full write up of this slideshare at https://
by.dialexa.com/consistent-data-structures-the-next-step-to-
building-an-api

Weitere ähnliche Inhalte

Was ist angesagt?

Designing a Future-proof API Program
Designing a Future-proof API ProgramDesigning a Future-proof API Program
Designing a Future-proof API Program
Pronovix
 
Onion Architecture
Onion ArchitectureOnion Architecture
Onion Architecture
matthidinger
 

Was ist angesagt? (20)

Designing APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven DesignDesigning APIs and Microservices Using Domain-Driven Design
Designing APIs and Microservices Using Domain-Driven Design
 
Designing a Future-proof API Program
Designing a Future-proof API ProgramDesigning a Future-proof API Program
Designing a Future-proof API Program
 
Creating an MVP with Oracle
Creating an MVP with OracleCreating an MVP with Oracle
Creating an MVP with Oracle
 
Api clarity webinar
Api clarity webinarApi clarity webinar
Api clarity webinar
 
Pain Points In API Development? They’re Everywhere
Pain Points In API Development? They’re EverywherePain Points In API Development? They’re Everywhere
Pain Points In API Development? They’re Everywhere
 
Ultimate Guide to 30+ API Documentation Solutions
Ultimate Guide to 30+ API Documentation SolutionsUltimate Guide to 30+ API Documentation Solutions
Ultimate Guide to 30+ API Documentation Solutions
 
Onion Architecture
Onion ArchitectureOnion Architecture
Onion Architecture
 
apidays LIVE Paris - Data with a mission: a COVID-19 API case study by Matt M...
apidays LIVE Paris - Data with a mission: a COVID-19 API case study by Matt M...apidays LIVE Paris - Data with a mission: a COVID-19 API case study by Matt M...
apidays LIVE Paris - Data with a mission: a COVID-19 API case study by Matt M...
 
apidays LIVE New York 2021 - Service API design validation by Uchit Vyas, KPMG
apidays LIVE New York 2021 - Service API design validation by Uchit Vyas, KPMGapidays LIVE New York 2021 - Service API design validation by Uchit Vyas, KPMG
apidays LIVE New York 2021 - Service API design validation by Uchit Vyas, KPMG
 
Api types
Api typesApi types
Api types
 
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeonapidays LIVE New York - API Code First vs Design First by Phil Sturgeon
apidays LIVE New York - API Code First vs Design First by Phil Sturgeon
 
API Thinking - How to Design APIs Through Systems Design
API Thinking - How to Design APIs Through Systems DesignAPI Thinking - How to Design APIs Through Systems Design
API Thinking - How to Design APIs Through Systems Design
 
INTERFACE, by apidays - Low code APIs that don't break by Zdenek Nemec, Supe...
INTERFACE, by apidays  - Low code APIs that don't break by Zdenek Nemec, Supe...INTERFACE, by apidays  - Low code APIs that don't break by Zdenek Nemec, Supe...
INTERFACE, by apidays - Low code APIs that don't break by Zdenek Nemec, Supe...
 
An Inside Look at a Large-scale Writer-driven REST API Doc Solution at Salesf...
An Inside Look at a Large-scale Writer-driven REST API Doc Solution at Salesf...An Inside Look at a Large-scale Writer-driven REST API Doc Solution at Salesf...
An Inside Look at a Large-scale Writer-driven REST API Doc Solution at Salesf...
 
Dependency Down, Flexibility Up – The Benefits of API-First Development
Dependency Down, Flexibility Up – The Benefits of API-First DevelopmentDependency Down, Flexibility Up – The Benefits of API-First Development
Dependency Down, Flexibility Up – The Benefits of API-First Development
 
APIs Are Just Like LEGO Blocks | APPSeCONNECT
APIs Are Just Like LEGO Blocks | APPSeCONNECTAPIs Are Just Like LEGO Blocks | APPSeCONNECT
APIs Are Just Like LEGO Blocks | APPSeCONNECT
 
API Best Practices Webinar: Metrics - What to Measure
API Best Practices Webinar:  Metrics - What to MeasureAPI Best Practices Webinar:  Metrics - What to Measure
API Best Practices Webinar: Metrics - What to Measure
 
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
 
APIs Are Forever - How to Design Long-Lasting APIs
APIs Are Forever - How to Design Long-Lasting APIsAPIs Are Forever - How to Design Long-Lasting APIs
APIs Are Forever - How to Design Long-Lasting APIs
 
What is an API and why use it?
What is an API and why use it?What is an API and why use it?
What is an API and why use it?
 

Ähnlich wie The Next Step to Build Better APIs — Consistent Data Structure

APIs +Micro services technology for Computing
APIs +Micro services technology for ComputingAPIs +Micro services technology for Computing
APIs +Micro services technology for Computing
wismoyo92
 

Ähnlich wie The Next Step to Build Better APIs — Consistent Data Structure (20)

Practical guide to building public APIs
Practical guide to building public APIsPractical guide to building public APIs
Practical guide to building public APIs
 
Apidays Singapore 2024 - APIs in the world of Generative AI by Claudio Tag, IBM
Apidays Singapore 2024 - APIs in the world of Generative AI by Claudio Tag, IBMApidays Singapore 2024 - APIs in the world of Generative AI by Claudio Tag, IBM
Apidays Singapore 2024 - APIs in the world of Generative AI by Claudio Tag, IBM
 
APIs +Micro services technology for Computing
APIs +Micro services technology for ComputingAPIs +Micro services technology for Computing
APIs +Micro services technology for Computing
 
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
 
Creating Datadipity
Creating DatadipityCreating Datadipity
Creating Datadipity
 
How to build and deploy app on Replit
How to build and deploy app on ReplitHow to build and deploy app on Replit
How to build and deploy app on Replit
 
Di api di server b1 ws
Di api di server b1 wsDi api di server b1 ws
Di api di server b1 ws
 
Building the Eventbrite API Ecosystem
Building the Eventbrite API EcosystemBuilding the Eventbrite API Ecosystem
Building the Eventbrite API Ecosystem
 
API.docx
API.docxAPI.docx
API.docx
 
APIs as a Product Strategy
APIs as a Product StrategyAPIs as a Product Strategy
APIs as a Product Strategy
 
Api design part 1
Api design part 1Api design part 1
Api design part 1
 
Third party api integration
Third party api integrationThird party api integration
Third party api integration
 
Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...Application Programming Interface Implementation For Building Software Applic...
Application Programming Interface Implementation For Building Software Applic...
 
Our API Evolution: From Metadata to Tooling API for Building Incredible Apps
Our API Evolution: From Metadata to Tooling API for Building Incredible AppsOur API Evolution: From Metadata to Tooling API for Building Incredible Apps
Our API Evolution: From Metadata to Tooling API for Building Incredible Apps
 
Webinar: How API Lifecycle Management can help to Accelerate Growth
Webinar: How API Lifecycle Management can help to Accelerate GrowthWebinar: How API Lifecycle Management can help to Accelerate Growth
Webinar: How API Lifecycle Management can help to Accelerate Growth
 
The API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesThe API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech Executives
 
apidays Helsinki & North 2023 - How can data-driven DevRel help identify gaps...
apidays Helsinki & North 2023 - How can data-driven DevRel help identify gaps...apidays Helsinki & North 2023 - How can data-driven DevRel help identify gaps...
apidays Helsinki & North 2023 - How can data-driven DevRel help identify gaps...
 
6 Best OpenAPI Documentation Tools that You must Know
6 Best OpenAPI Documentation Tools that You must Know6 Best OpenAPI Documentation Tools that You must Know
6 Best OpenAPI Documentation Tools that You must Know
 
Optimizing your job apply pages with the LinkedIn profile API
Optimizing your job apply pages with the LinkedIn profile APIOptimizing your job apply pages with the LinkedIn profile API
Optimizing your job apply pages with the LinkedIn profile API
 
5 Best Asp.Net Core Features to Know and Employ In 2024.pptx
5 Best Asp.Net Core Features to Know and Employ In 2024.pptx5 Best Asp.Net Core Features to Know and Employ In 2024.pptx
5 Best Asp.Net Core Features to Know and Employ In 2024.pptx
 

Mehr von Dialexa

Mehr von Dialexa (20)

Smart Transportation Is All About the Data - Insights from Vinli CEO, Mark Ha...
Smart Transportation Is All About the Data - Insights from Vinli CEO, Mark Ha...Smart Transportation Is All About the Data - Insights from Vinli CEO, Mark Ha...
Smart Transportation Is All About the Data - Insights from Vinli CEO, Mark Ha...
 
Developing User Stories - The Dialexa Way
Developing User Stories - The Dialexa WayDeveloping User Stories - The Dialexa Way
Developing User Stories - The Dialexa Way
 
The Evolution of UX in Virtual Reality
The Evolution of UX in Virtual RealityThe Evolution of UX in Virtual Reality
The Evolution of UX in Virtual Reality
 
33 Software Development Tools that Drive Dialexa’s Success
33 Software Development Tools that Drive Dialexa’s Success33 Software Development Tools that Drive Dialexa’s Success
33 Software Development Tools that Drive Dialexa’s Success
 
Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...
Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...
Platforms and Microservices - Is There a Middle Ground for Engineers and Tech...
 
Balancing Human-Centered Design with Business Outcomes (Part 2: Shift from De...
Balancing Human-Centered Design with Business Outcomes (Part 2: Shift from De...Balancing Human-Centered Design with Business Outcomes (Part 2: Shift from De...
Balancing Human-Centered Design with Business Outcomes (Part 2: Shift from De...
 
FAA Drone Regulations - Your Part 107 Cheat Sheet
FAA Drone Regulations - Your Part 107 Cheat SheetFAA Drone Regulations - Your Part 107 Cheat Sheet
FAA Drone Regulations - Your Part 107 Cheat Sheet
 
The Four Pillars of PCB Design for Creating a Successful IoT Product
The Four Pillars of PCB Design for Creating a Successful IoT ProductThe Four Pillars of PCB Design for Creating a Successful IoT Product
The Four Pillars of PCB Design for Creating a Successful IoT Product
 
Tools and Resources for New Product Development: The Discovery Phase
Tools and Resources for New Product Development: The Discovery PhaseTools and Resources for New Product Development: The Discovery Phase
Tools and Resources for New Product Development: The Discovery Phase
 
Humanizing Machine Learning - Real-World Applications
Humanizing Machine Learning - Real-World ApplicationsHumanizing Machine Learning - Real-World Applications
Humanizing Machine Learning - Real-World Applications
 
It’s About More than Pixels: Redefining "Designer"
It’s About More than Pixels: Redefining "Designer"It’s About More than Pixels: Redefining "Designer"
It’s About More than Pixels: Redefining "Designer"
 
4 External Forces Accelerating the Smart City Model
4 External Forces Accelerating the Smart City Model4 External Forces Accelerating the Smart City Model
4 External Forces Accelerating the Smart City Model
 
Your Big Idea: Creating Products for B2B Disruption
Your Big Idea: Creating Products for B2B DisruptionYour Big Idea: Creating Products for B2B Disruption
Your Big Idea: Creating Products for B2B Disruption
 
Organizational Challenges CIOs Face as Companies Change Rapidly—And What to D...
Organizational Challenges CIOs Face as Companies Change Rapidly—And What to D...Organizational Challenges CIOs Face as Companies Change Rapidly—And What to D...
Organizational Challenges CIOs Face as Companies Change Rapidly—And What to D...
 
Does Your Technology Roadmap Have a Financial Roadmap?
Does Your Technology Roadmap Have a Financial Roadmap?Does Your Technology Roadmap Have a Financial Roadmap?
Does Your Technology Roadmap Have a Financial Roadmap?
 
Current State Analysis—More Important than You Think for Building a Technolog...
Current State Analysis—More Important than You Think for Building a Technolog...Current State Analysis—More Important than You Think for Building a Technolog...
Current State Analysis—More Important than You Think for Building a Technolog...
 
Lean Design Research - Why There’s No Excuse Wasting Money on Bad Products A...
Lean Design Research - Why There’s No Excuse Wasting  Money on Bad Products A...Lean Design Research - Why There’s No Excuse Wasting  Money on Bad Products A...
Lean Design Research - Why There’s No Excuse Wasting Money on Bad Products A...
 
Minimum Testable Features—A Different Approach to Agile Software Development
Minimum Testable Features—A Different Approach to Agile Software DevelopmentMinimum Testable Features—A Different Approach to Agile Software Development
Minimum Testable Features—A Different Approach to Agile Software Development
 
Minimum Viable Bureaucracy- A Practical Approach to Scaling Agile Project Man...
Minimum Viable Bureaucracy- A Practical Approach to Scaling Agile Project Man...Minimum Viable Bureaucracy- A Practical Approach to Scaling Agile Project Man...
Minimum Viable Bureaucracy- A Practical Approach to Scaling Agile Project Man...
 
The Minimum Loveable Product: Go Beyond the Minimum Viable Product
The Minimum Loveable Product: Go Beyond the Minimum Viable ProductThe Minimum Loveable Product: Go Beyond the Minimum Viable Product
The Minimum Loveable Product: Go Beyond the Minimum Viable Product
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

The Next Step to Build Better APIs — Consistent Data Structure

  • 1. The Next Step to Build Better APIs — Consistent Data Structure by Andrew Turner https://by.dialexa.com/consistent-data-structures-the-next-step-to-building-an-api
  • 2. Dialexa We are on a mission to make every company a great technology company. We work with organizations to define and execute digital transformation strategies to improve business operations and customer experiences. Our services include: • Multi-Year Technology Roadmap • Platform Engineering • User Experience Design • Custom Software Development • Hardware Prototyping /IoT
  • 3. You don’t build good APIs through coding alone. Like  any other part of your business, APIs are best when they are developed as part of a detailed, end-to-end strategy. Get the full write up of this slideshare HERE
  • 4. However, there are multiple parts of a comprehensive strategy and understanding each piece is essential to building better APIs. Get the full write up of this slideshare HERE
  • 5. In our first post about APIs, we talked about the need for a documentation- first strategy and how 3 main tools can help you build more effectively. Get the full write up of this slideshare HERE
  • 6. The next natural step in the process is to choose an appropriate data structure formatting convention for API endpoint responses and ensure it is applied consistently—here’s how. Get the full write up of this slideshare HERE
  • 7. Understand Your API Use Case Get the full write up of this slideshare HERE
  • 8. We talk a lot about “starting with the why” for product development— starting small discovery projects and using design thinking to get to the heart of the problem your product will solve. Get the full write up of this slideshare HERE
  • 9. Understanding the “why” is also an important concept when building APIs. Get the full write up of this slideshare HERE
  • 10. The key is to determine your API use case. Is the API for a mobile app? Is it for front end use? Will it be public for third party developers? Get the full write up of this slideshare HERE
  • 11. The “why” of your API will help you choose the right data structure convention for development. However, there are many different options to choose from. Get the full write up of this slideshare HERE
  • 12. Common API Response Formatting Conventions Get the full write up of this slideshare HERE
  • 13. To read more you can find the full article at https://by.dialexa.com/consistent-data-structures-the- next-step-to-building-an-api
  • 14. JSON API JSON API is a community-driven specification for building APIs and formatting API responses. Get the full write up of this slideshare HERE
  • 15. EmberData Ember is a framework for creating ambitious web applications. If you're building an API for an Ember application, you may want to consider using the EmberData convention for your API responses. Get the full write up of this slideshare HERE
  • 16. Core API Another community-driven convention is Core API. Get the full write up of this slideshare HERE
  • 17. Flat Response This is a simple and straightforward way to format your data structure that simply returns the data requested without a namespace object. Twitter and GitHub are popular APIs that follow this data structure formatting convention. Get the full write up of this slideshare HERE
  • 18. Seeking the pros and cons of each data structure convention seems like a logical next step once you’ve listed your options. Get the full write up of this slideshare HERE
  • 19. However, there is no single correct data structure convention. You should choose a convention based on what is pragmatic and intended for your API use case. Get the full write up of this slideshare HERE
  • 20. It’s possible that a specific data structure convention would work best for your API's use case—for example, Vinli’s need to return telemetry data could command a different convention than a project management API that returns tasks and project updates. Get the full write up of this slideshare HERE
  • 21. Generally, though, keeping your data structures consistently formatted will result in a better API.  Get the full write up of this slideshare HERE Get the full write up of this slideshare HERE
  • 22. When you establish your data structure convention from the outset of your project, you can better coordinate the “why” of your API and the way you’re building it.  Get the full write up of this slideshare HERE
  • 23. Then, you can include the data structure convention in your documentation and use Dredd to validate its use throughout the project. Get the full write up of this slideshare HERE
  • 24. After you establish a formatting convention for your API's data structures, you should implement meaningful HTTP status codes to ensure your API responses are accurate. Get the full write up of this slideshare HERE
  • 25. Find out where great products come from! Download or free eBook: https://by.dialexa.com/dialexa-end-to-end- development-guide-0
  • 26. Status Codes Should Accurately Reflect Your API Response Get the full write up of this slideshare HERE
  • 27. As you use Dredd to validate your data structure formatting, make sure you use the appropriate HTTP status code for each type of response. Get the full write up of this slideshare HERE
  • 28. However, because there are so many HTTP status codes, it is important to pay attention to the right ones throughout your development process. Get the full write up of this slideshare HERE
  • 29. At a higher level, there are 4 main HTTP status code categories: • 200 Level: The HTTP 2xx codes convey successful responses. • 300 Level: HTTP 3xx codes are reserved for redirects. • 400 Level: This Block of codes conveys errors that originate on the client side. • 500 Level: Similar to the 400 level codes, HTTP 5xx codes translate errors, but on the server side instead. Get the full write up of this slideshare HERE
  • 30. To give you a better idea of the specific codes any engineer should know, we’ve compiled a list of the most important ones: Get the full write up of this slideshare HERE
  • 31. By using these meaningful status codes, you can avoid sending 200 level status codes when your API is returning an error! Get the full write up of this slideshare HERE
  • 32. You want your API to be predictable and easy to work with— ensuring status codes match the true API response is essential to building a better API. Get the full write up of this slideshare HERE
  • 33. There’s More to APIs and Product Development Than Consistent Data Structures Get the full write up of this slideshare HERE
  • 34. You won’t be able to build an effective API without proper documentation and consistent data structures. Get the full write up of this slideshare HERE
  • 35. And you won’t be able to  succeed with digital transformation projects if you can’t build better APIs. However, there’s much more to digital transformation product development than just APIs. Get the full write up of this slideshare HERE
  • 36. PROPERTY OF DIALEXA LLC ©2017 - CONFIDENTIAL & PROPRIETARY Thank You Doug Platts VP of Marketing marketing@dialexa.com If you want to learn more about the product development process and how your better APIs fit into the bigger picture, download our free ebook and discover how we combine business and innovation consulting, user experience design, software engineering and hardware engineering to create products that users love. Get the full write up of this slideshare at https:// by.dialexa.com/consistent-data-structures-the-next-step-to- building-an-api