For RestFul 1.x
You have a content type that you want to be display on specific pages. You want to use the same system as Drupal core block visibility.
Add a textarea field to your content type called visibility, with a machine name of field_block_visibility.
Create or add to your endpoint the following code: