If you have "implemented a Rest API" I think you just need to know the native WP methods for making requests:
wp_remote_get()
wp_remote_post()
Under the hood they do more or less the same thing, use the same method to make external requests, and you pass in the arguments the type of request (POST, PUT, UPDATE, etc), the headers and other information.
example of documentation:
$response = wp_remote_get( 'http://www.example.com/index.html', $args );
if ( is_array( $response ) && ! is_wp_error( $response ) ) {
$headers = $response['headers']; // array of http header lines
$body = $response['body']; // use the content
}
Good evening! Thank you very much for the answer. Got it. My question is really how to consume this data returned by the Json API. I thought that there was a higher level, however I must use PHP code. I will search how to do this because I have no experience. But how do I Binding the date for inputs or Tables? Abço.
– Sidronio Lima