Field Info API as REST
Simply you need to create a custom resource as described here.

In the call back put the piece of code answered here

taking args int he resource, But I suggest using field_info_field as it only takes the field name and returns all details as an array that you could choose what you need to return