Web api sel-host html客户端 [英] Web api sel-host html client

查看:76
本文介绍了Web api sel-host html客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个自主式web api,它从控制台应用程序返回json中的一些数据,现在我必须创建一个项目来插入我的html文件,所以当我开始这个地址localhost:9000 / dash我可以看到数据(图表和其他值)。



我一直在阅读很多东西,我发现了博客解释了我想要的类似想法:

blog



thata显示一个网页当前面提到的链接被调用,并且它适用于T4,但我似乎无法使我的外部js和css文件工作,网页返回错误404,找不到文件。



我是以正确的方式使用它还是有另一种方式,一种简单的方式来制作我想要的东西?



Thk

Hi,
I have created a self-host web api, that returns some data in json, from a console app and now i have to create a project to insert my html file, so when i start this address localhost:9000/dash i can see the data ( charts and other values).

I've been reading a lot of stuff and i found a blog that explain a similar idea of what i want :
blog

thata is show a web page when the link mentioned before is call, and it works with T4, but i can't seem to make my external js and css files to work, the web page returns me error 404, file not found.

am i using this the right way or is there another way, an easy one, to make what i want?

Thk

推荐答案

这篇关于Web api sel-host html客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆