#Api
7 notas · última:
Phoenix CSRF protection in HTML forms, React forms, and APIs
Explains how Phoenix handles CSRF protection for HTML forms, how to send the token in React AJAX requests, and how to expose it as a cookie for SPA or API-style clients.
Smart Node.js Form Validation
The article shows how datalize adds validation for Node.js APIs, including request bodies, queries, params, arrays, nested objects, custom rules, and automatic error handling.
GraphQL Crash Course (in 10 pics!)
A compact GraphQL overview covering how queries, schema, arguments, aliases, fragments, variables, interfaces, mutations, and subscriptions work, plus playground tools and extra resources.
Test-Driven APIs with Phoenix and Elixir
The tutorial uses TDD to build a Phoenix API for listing movies, adding dependencies, routes, a controller, a view, and a model while showing how each test failure guides the next change.
CORS in Phoenix
Explains why SPAs need a backend, how Phoenix serves as a JSON API, what CORS is, and how Phoenix plugs can add CORS headers while handling pre-flight OPTIONS requests.
The 5 laws of API dates and times
The page argues that APIs should use ISO 8601, accept any timezone, store times in UTC, return UTC, and avoid time values when only a date is needed to reduce ambiguity and parsing problems.
OAuth sem dor com PHP – PHP OAuth API – Parte 02
O artigo mostra como a classe PHP OAuth API simplifica a integração com OAuth, oculta diferenças entre versões e descreve o fluxo para obter token de acesso e chamar a API do provedor.
