简体   繁体   English

Angular Application接受来自外部应用程序的帖子(类似于API)

[英]Angular Application to Accepts posts from an external application ( Similar to API )

I need some guidance and if this scenario even possible. 我需要一些指导,如果可能的话,甚至可以。 ( This is an MVP for a Client) (这是客户的MVP)

This Web application needs to accepts posts. 该Web应用程序需要接受帖子。 Similar to how API works at Serverside. 类似于API在服务器端的工作方式。 A third party application needs to post data in the form of JSON or text to my application, then I need to get the coming post data, do some cleaning and show it on the view. 第三方应用程序需要以JSON或文本形式发布数据到我的应用程序,然后我需要获取即将发布的发布数据,进行一些清理并将其显示在视图上。

No Server side can be used. 无法使用服务器端。

Query string is easy to get from the URL however the size of the query strings are very limited so I left with post method. 查询字符串很容易从URL中获取,但是查询字符串的大小非常有限,因此我留下了post方法。

Any suggestion? 有什么建议吗? Can it be done in Angular? 可以在Angular中完成吗?

I can think of two options for pushing data to your webapp. 我可以想到两种将数据推送到您的Web应用程序的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM