简体   繁体   English

Symfony / API平台无UI

[英]Symfony/API Platform no UI

I am trying out the Platform API framework that works with Symfony. 我正在尝试与Symfony一起使用的Platform API框架。

I am following their docs and trying to set up the little demo API . 我正在关注他们的文档,并尝试设置小演示API

Everything goes OK, at least I think. 一切正常,至少我认为。 When I run the server I see no UI I only see this text in my browser: 当我运行服务器时,没有看到用户界面,我只能在浏览器中看到以下文本:

{"@context":"\\/contexts\\/Entrypoint","@id":"\\/","@type":"Entrypoint","book":"\\/books","person":"\\/people","organization":"\\/organizations"}

Anyone knows what goes wrong here? 有人知道这里出了什么问题吗? I am using composer for this little demo. 我正在为这个小演示使用作曲家。

Any help is very much appreciated! 很感谢任何形式的帮助!

Thanks in advance! 提前致谢!

Are you sure to use the version 2 of API Platform (the v1 doesn't have a builtin UI). 您确定要使用API​​平台的版本2(v1没有内置的UI)。 To execute the V2, you need PHP 7 or superior. 要执行V2,您需要PHP 7或更高版本。

Do you use the provided Docker image? 您是否使用提供的Docker映像?

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

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