I have a functioning web api using .NET Web API. The return is JSON data via the api url call /api/v1/Au/Get. Right now I don't know how to feed that data into something useful as this url path is my api call and not associated with a view. How do I return data that I can pass into an HTML table or list? I have been researching a lot and haven't come up with anything too useful.
this is the form that makes the call
<form class="rhc" method="POST" action="/api/v1/Au/Get">
<input type="text" name="twitter_handle" class="form-control" placeholder="Twitter" />
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="ladda-label">Free Preview</span>
<span class="ladda-spinner"></span>
</button>
</span>
</form>
The returned JSON contains a lot of data and the raw string is all that appears on the page after the submission of the form is made. Any help on this would be so much appreciated.
VIEWMODELand load it in view ? That would be really is to display all the data inVIEWmethod="POST" action="/api/v1/Au/Get", you set method type asPOSThave you mentioned [HttpPost] as an attribute in your action method?