/wp-json/v1/posts vs /wp-json/v2/posts. Different endpoints dla versions. Clients choose version. Old version supported (deprecation period) potem removed.

URL versioning

Version w URL. /v1, /v2, /v3. Clear. Clients migrate at own pace.

Deprecation strategy

Don’t kill old API immediately. Deprecate: „v1 sunset Dec 2026”. Give clients 6 months. Then remove.

Backwards compatibility

Add new fields, don’t remove old. Old clients still expect old fields. Provide both.

Documentation

Clear docs on what changed. Clients know what adjust.