custom field – How can I return the meta box from the REST API?

I've added Meta Box City and Location to my posting, but when I call the endpoint (from WP Rest API) "/ wp-json / wp / v2 //", my meta box will not be returned.

I tried to use register_meta like that, but still does not work:

register_meta (& # 39; my_post_type & # 39 ;, & # 39; city & # 39 ;, [
    'type' => 'string',
    'description' => 'Cidade',
    'single' => true,
    'show_in_rest' => true
]);

What should I do to return it?