Web Dev

Ref:

Tool

Tech Stack

  • LAMP Stack: Linux Apache MySql Php
  • LEMP Stack: Linux Nginx MySql Php
  • LYME Stack: Linux, Yaws, Mnesia, Erlang
  • LYCE Stack:Linux, Yaws, CouchDB, Erlang

Standards

  • JSend Specification
  • JSON API V1
  • OpenAPI Specification (Swagger)
  • GraphQL: query language for API, get many request in single request
  • XMPP: open standard for messaging and presence

Generator

Communication

Webhooks

https://restful.io/webhooks-dos-and-dont-s-what-we-learned-after-integrating-100-apis-d567405a3671

XPath

Expression to query from xml

Ref:

JSON Path

Expressions to refer to specific json structure

Online Evaluator

Cheatsheet

Function Description Example Result
text the plain text kind is {.kind} kind is List
@ the current object {@} the same as input
. or [] child operator {.kind} or {[‘kind’]} List
.. recursive descent {..name} 127.0.0.1 127.0.0.2 myself e2e
* wildcard. Get all objects {.items[*].metadata.name} [127.0.0.1 127.0.0.2]
[start:end :step] subscript operator {.users[0].name} myself
[,] union operator {.items[*][‘metadata.name’, ‘status.capacity’]} 127.0.0.1 127.0.0.2 map[cpu:4] map[cpu:8]
?() filter {.users[?(@.name==“e2e”)].user.password} secret
range, end iterate list {range .items[*]}[{.metadata.name}, {.status.capacity}] {end} [127.0.0.1, map[cpu:4]] [127.0.0.2, map[cpu:8]]
quote interpreted string {range .items[*]}{.metadata.name}{’\t’}{end} 127.0.0.1 127.0.0.2

SEO

isomorphic

link juice

JWT

JWT = JSON Web Token

Reference:

Related Project:

  • Jwt-Session: JwtSession is a PHP session replacement. Instead of use FileSystem, just use JWT TOKEN. The implementation follow the SessionHandlerInterface.

Why:

  • Compact: small
  • Self Contained: the actual token contains information about a given subject

Uses:

  • Authorization
  • Information Exchange

Structure: xxxxx.yyyyy.zzzzz

  • Header –> Token Type and Signing Algo
  • Payload –> Claims = entity + additional data
  • Signature –> Make sure data wasn’t changed

SOAP

Ref: