All version of WordPress 4.4 and above support the much-anticipated REST API. HTTP REST API enables WordPress users to break the limitations of a WordPress website so that they can interact with their website remotely….
Source: https://www.wpeka.com/make-custom-endpoints-wordpress-rest-api.html