title: How to browse application on service fabric?
body: <p><strong>How do I find out what endpoint I should be requesting in order to trigger GetAccounts?</strong></p>
  
  <p>I've got two applications running on my local cluster:<a href="https://i.stack.imgur.com/Hlh0z.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/Hlh0z.gif" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/aqlWu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aqlWu.png" alt="enter image description here"></a></p>
  
  <p>The <strong>fabric/Service</strong> is a web api application with the following configuration:</p>
  
  <pre><code>internal sealed class Web : StatelessService
      {
          public Web(StatelessServiceContext context)
              : base(context)
          {
          }
  
          /// &lt;summary&gt;
          ///     Optional override to create listeners (like tcp, http) for this service instance.
          /// &lt;/summary&gt;
          /// &lt;returns&gt;The collection of listeners.&lt;/returns&gt;
          protected override IEnumerable&lt;ServiceInstanceListener&gt; CreateServiceInstanceListeners()
          {
              return new[]
              {
                  new ServiceInstanceListener(serviceContext =&gt; new OwinCommunicationListener(Startup.ConfigureApp,
                      serviceContext, ServiceEventSource.Current, "ServiceEndpoint"))
              };
          }
      }
  </code></pre>
  
  <p>The startup is configured like so:</p>
  
  <pre><code>public static class Startup
  {
      // This code configures Web API. The Startup class is specified as a type
      // parameter in the WebApp.Start method.
  
      public static void ConfigureApp(IAppBuilder appBuilder)
      {
          // Configure Web API for self-host. 
          var config = new HttpConfiguration();
          //config.Routes.MapHttpRoute(
          //    name: "DefaultApi",
          //    routeTemplate: "api/{controller}/{id}",
          //    defaults: new { id = RouteParameter.Optional }
          //);
          config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));
          config.MapHttpAttributeRoutes();
          var container = new UnityContainer();
          container.RegisterType&lt;IAccountService, AccountService&gt;(new HierarchicalLifetimeManager());
          config.DependencyResolver = new UnityResolver(container);
  
          appBuilder.UseWebApi(config);
      }
  }
  </code></pre>
  
  <p>And finally the service manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;ServiceManifest Name="WebPkg"
                   Version="1.0.0"
                   xmlns="http://schemas.microsoft.com/2011/01/fabric"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;ServiceTypes&gt;
      &lt;!-- This is the name of your ServiceType. 
           This name must match the string used in RegisterServiceType call in Program.cs. --&gt;
      &lt;StatelessServiceType ServiceTypeName="WebType" /&gt;
    &lt;/ServiceTypes&gt;
  
    &lt;!-- Code package is your service executable. --&gt;
    &lt;CodePackage Name="Code" Version="1.0.0"&gt;
      &lt;EntryPoint&gt;
        &lt;ExeHost&gt;
          &lt;Program&gt;removed...........Accounts.Web.exe&lt;/Program&gt;
          &lt;WorkingFolder&gt;CodePackage&lt;/WorkingFolder&gt;
        &lt;/ExeHost&gt;
      &lt;/EntryPoint&gt;
    &lt;/CodePackage&gt;
  
    &lt;!-- Config package is the contents of the Config directoy under PackageRoot that contains an 
         independently-updateable and versioned set of custom configuration settings for your service. --&gt;
    &lt;ConfigPackage Name="Config" Version="1.0.0" /&gt;
  
    &lt;Resources&gt;
      &lt;Endpoints&gt;
        &lt;!-- This endpoint is used by the communication listener to obtain the port on which to 
             listen. Please note that if your service is partitioned, this port is shared with 
             replicas of different partitions that are placed in your code. --&gt;
        &lt;Endpoint Protocol="http" Name="ServiceEndpoint" Type="Input" /&gt;
      &lt;/Endpoints&gt;
    &lt;/Resources&gt;
  &lt;/ServiceManifest&gt;
  </code></pre>
  
  <p>And my controller:</p>
  
  <pre><code>    [HttpGet]
      [Route("accounts", Name = "GetAccounts")]
      public async Task&lt;IHttpActionResult&gt; GetAccounts(){//dostuff}
  </code></pre>
  
  <p><strong>How do I find out what endpoint I should be requesting in order to trigger GetAccounts?</strong></p>