function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Maria AlexanderMaria Alexander 

how to display the rest web services get method values using list display in visual force page

Hi, all I tried but I can't display the values on the visualforce page it showing the partial output with your help I can get the idea I hope you are all understand. 

Visual force page
<apex:page controller="integrationcontroller" sidebar="false" showHeader="false" docType="html-5.0">
  <apex:form >
 <apex:commandButton value="Click To Get" action="{!getresult}"/>
  Output:<b></b>

 <apex:outputLabel value="{!myresponse}"/>
</apex:form>
</apex:page>

Webservices

 @HttpGet
    global static List<Login__c> doGet() 
    {
     List<Login__c> Lg=new List<Login__c>();
     Lg=[select Name from Login__c];
       return Lg;
    }



Controller 

public PageReference getresult() 
    {
    
    Http http = new Http();
    HttpRequest request = new HttpRequest();
    request.setEndpoint('https://mas-jeevantechnologies-developer-edition.ap5.force.com/services/apexrest/myservice');
    request.setMethod('GET');
    HttpResponse response = http.send(request);
    myresponse=response.getBody();    

}
partial output 
partial output
Thanks in Advance.