Get HTTP GET response in Visualforce page

I am calling the REST GET method and trying to display the result of the REST call in Visualforce page. I developed the code so far but facing small error.

Unknown property 'ApexRestController.cases' 

It would be better to display result on page load only. How ? When I tried using Postman I got the following response which I want to show to client using Visualforce page.

, "CaseNumber":"00001047", "Subject":"Bigfoot Sighting!", "Status":"Working", "Priority":"Medium", "Id":"5007F000000qqvCQAQ"> 

The code I developed so far: CaseDetails

public class CaseDetails < public String CaseNumber public String Subject public String Status public String Priority public String Id > 

ApexRestVFPage

   "/> Output Contact Details  " /> " /> " />    

ApexRestController

public class ApexRestController < public static Listcases public static String getAccessToken() < HttpRequest req = new HttpRequest(); req.setMethod('POST'); req.setHeader('Content-Type','application/x-www-form-urlencoded'); req.setEndpoint('https://ap5.salesforce.com/services/oauth2/token'); String CLIENT_ID = 'XXXXX'; String CLIENT_SECRET = 'XXX'; String USERNAME = 'XXX'; String PASSWORD = 'XX'; req.setBody('grant_type=password' + '&client_id='+CLIENT_ID + '&client_secret='+CLIENT_SECRET + '&username='+USERNAME + '&password='+PASSWORD); Http http = new Http(); HTTPResponse res = http.send(req); String access_token = res.getBody(); Listaccess_tokenList = new List(); access_tokenList = access_token.split(',',-1); system.debug(access_tokenList[0]); access_tokenList = access_tokenlist[0].split(':',-1); system.debug(access_tokenList[1]); String tokennew = access_tokenList[1].replace('"',''); system.debug(tokennew); return tokennew; > public static CaseDetails getCaseDetailsById()< Http http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('https://ap5.salesforce.com/services/apexrest/Cases/XXXXX'); req.setMethod('GET'); req.setHeader('Authorization', 'Bearer '+getAccessToken()); HTTPResponse res = http.send(req); System.debug(res.getBody()); cases = (List) JSON.deserialize(res.getBody(), List.class); return cases[0]; > >