Регистрация ·  Логин: Пароль: Запомнить   · Забыли пароль?




Ответить на тему
Автор Сообщение

Модератор
Аватара пользователя

С нами: 11 лет 3 месяца
Сообщения: 7870
Молдова

Сообщение 11 янв 2016, 22:05 

[Цитировать]


Build APIs You Won't Hate

Год: 2015
Автор: Phil Sturgeon
Жанр: Учебное пособие
Издательство: Leanpub
ISBN: отсутствует
Язык: Английский
Формат: PDF, EPUB, MOBI
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 181

Описание:

Tasked with building an API for your company but don't have a clue where to start? Taken over an existing API and hate it? Built your own API and still hate it? This book is for you.

API development is becoming increasingly common for server-side developers thanks to the rise of front-end JavaScript frameworks, iPhone applications, and API-centric architectures. It might seem like grabbing stuff from a data source and shoving it out as JSON would be easy, but surviving changes in business logic, database schema updates, new features, or deprecated endpoints can be a nightmare.

After finding many of the existing resources for API development to be lacking, Phil learned a lot of things the hard way through years of trial and error. This book aims to condense that experience, taking examples and explanations further than the trivial apples and pears nonsense tutorials often provide.

Phil worked primarily as an API developer for the last three years. One horror was managing an API built in FuelPHP by a freelancer at the million dollar startup he joined. It was utilizing a then deprecated ORM which had been hacked to death by the previous developer, so took the time to delete that mess and build the next version in Laravel, leveraging it's simple routing, database migrations, schema, seeding, etc. When the following major version of the API was built no rewrite was required, and both managed to live side-by-side on the same "API" servers.

By passing on some best practices and general good advice you can hit the ground running with API development, combined with some horror stories and how they were overcome/avoided/averted. This book will discuss the theory of designing and building APIs in any language or framework, with this theory applied in PHP-based examples.

Some of the more advanced topics covered here are endpoint testing, embedding data objects in a consistent and scalable manner, paginating responses (including embedded objects) and hypermedia "HATEOAS" controls.
Introduction
Sample Code
Useful Database SeedingIntroduction
Introduction to Database Seeding
Building Seeders
That is about it
Secondary Data
When to run this?Planning and Creating EndpointsFunctional Requirements
Endpoint Theory
Planning EndpointsInput and Output TheoryIntroduction
Requests
Responses
Supporting Formats
Content StructureStatus Codes, Errors and MessagesIntroduction
HTTP Status Codes
Error Codes and Error Messages
Error or Errors
Standards for Error Responses
Common PitfallsEndpoint TestingIntroduction
Concepts & Tools
Setup
Initialise
Features
Scenarios
Prepping Behat
Running BehatOutputting DataIntroduction
The Direct Approach
Transformations with Fractal
Hiding Schema Updates
Outputting Errors
Testing this Output
HomeworkData RelationshipsIntroduction
Sub-Resources
Foreign Key Arrays
Compound Documents (a.k.a Side-Loading)
Embedded Documents (a.k.a Nesting)
SummaryDebuggingIntroduction
Command-line Debugging
Browser Debugging
Network DebuggingAuthenticationIntroduction
When is Authentication Useful?
Different Approaches to Authentication
Implementing an OAuth 2.0 Server
Where the OAuth 2.0 Server Lives
Understanding OAuth 2.0 Grant TypesPaginationIntroduction
Paginators
Offsets and CursorsDocumentationIntroduction
Types of Documentation
Picking a Tool
Setting up API Blueprint and Aglio
Learning API Blueprint Syntax
Further ReadingHATEOASIntroduction
Content Negotiation
Hypermedia ControlsAPI VersioningIntroduction
Different Approaches to API Versioning
Ask Your UsersConclusion
Further Reading
Download
Для скачивания .torrent файлов необходима регистрация
Сайт не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм

Страница 1 из 1

Ответить на тему

   Похожие торренты   Торрент