播放Swagger UI网址别名(Play Swagger UI url alias)
我有用于API文档的
Swagger UI
,我使用与官方规范中相同的方法来访问它我使用下一个URL:http://localhost:9000/docs/swagger-ui/index.html?url=/assets/swagger.json
但我想使用
http://localhost:9000/docs/
代替。 我不想使用WS
进行委托,我想在routes
使用单行,如下所示:GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html?url=/assets/swagger.json")
要么
GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html")
和
http://localhost:9000/docs?url=/assets/swagger.json
我改变了什么,所以它的工作?
I have
Swagger UI
for API documentation, I use the same approach like in official specification for accessing it I use next URL:http://localhost:9000/docs/swagger-ui/index.html?url=/assets/swagger.json
But I want to use
http://localhost:9000/docs/
instead. I won't want to useWS
for delegating, I would like to use single line inroutes
, like this:GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html?url=/assets/swagger.json")
Or
GET /docs controllers.Assets.at(path:String="/public/lib/swagger-ui", file:String="index.html")
and
http://localhost:9000/docs?url=/assets/swagger.json
What shold I change so it work?
原文:https://stackoverflow.com/questions/46605363
最满意答案
这是一个维基解释了这款Adafruit NFC屏蔽的API。 在一个部分,
Demo 2: PtoPInitiator.pde and PtoPTarget.ino
,显示了一个示例,似乎可以使用点对点通信。我从未接触过Windows Phone,因此我不知道它现在可用,但是, 这里是在Windows Phone 8上使用NFC(以及点对点)的解释。
在Android上已经提到/回答了在Android上使用点对点通信的方法。
Here is a wiki that explains the API of this Adafruit NFC shield. In a section,
Demo 2: PtoPInitiator.pde and PtoPTarget.ino
, An example is shown and it seems that the Peer-to-Peer communication is available for use.I have never touched Windows Phone so I don't know that it is available now but, here is a explanation for using NFC (as well as Peer-to-Peer) on Windows Phone 8.
The way to use Peer-to-Peer communication on Android is already asked / answered here.
相关问答
更多-
Android(以及iOS)不支持DirectX,但支持OpenGL ES。 使用 Android开发人员网站上的OpenGL检查3D 。 Android (and iOS as well) doesn't support DirectX but OpenGL ES. Check out 3D with OpenGL on the Android developer site.
-
不可以。设备显示屏关闭时不会生成和发送此意图。 如果您有Nexus S,请尝试标记某些内容并观察卡特洛克,您会发现手机上没有收到任何内容。 我认为这种行为是非常合理的。 由于现在我们周围有很多东西都有RFID标签,如果NFC应用程序即使在屏幕关闭的情况下也可以触发,可能会发生意外情况。 No. The intent won't be generated and sent while the device's display is off. If you have Nexus S, try to tag so ...
-
这是一个维基解释了这款Adafruit NFC屏蔽的API。 在一个部分, Demo 2: PtoPInitiator.pde and PtoPTarget.ino ,显示了一个示例,似乎可以使用点对点通信。 我从未接触过Windows Phone,因此我不知道它现在可用,但是, 这里是在Windows Phone 8上使用NFC(以及点对点)的解释。 在Android上已经提到/回答了在Android上使用点对点通信的方法。 Here is a wiki that explains the API of ...
-
Windows Phone写NFC标签(Windows Phone Write NFC Tag)[2022-10-28]
我已经解决了这个问题。 事实证明,将自定义文本写入标记需要UTF-8编码。 我变了... dataWriter.unicodeEncoding = Windows.Storage.Streams.UnicodeEncoding.utf16LE; 至 dataWriter.unicodeEncoding = Windows.Storage.Streams.UnicodeEncoding.utf8; 现在,数据被写入并可以正确地从标签中检索。 I've solved the issue. Turns out ... -
是的,我刚刚使用带有OS7.0的BlackBerry 9360上的智能标签应用程序来创建智能海报标签并将其置于标签模拟模式。 然后将其保持在运行NXP标签编写器应用程序的Nexus S的背面,它识别并读取BB模拟标签。 同样,NFC研究实验室的Michael Roland通过NFC TagInfo应用程序在Nexus S上读取标签。 Yes, I just used the Smart Tags app on a BlackBerry 9360 with OS7.0 to create a Smart Po ...
-
这些命令是什么? 第一个命令( 90 60 00 00 00 )是MIFARE DESFire GetVersion命令(包装命令集)。 这似乎是特定于基于恩智浦的NFC NFC堆栈,并不是典型的NFC标签检测程序的一部分。 第二个命令( 00 A4 04 00 07 D2 76 00 00 85 01 01 00 )是一个SELECT APDU,它试图通过其AID选择NFC论坛类型4标签应用程序(版本2.0)。 这是基于ISO 14443-4(ISO-DEP)的标签/智能卡的典型标签检测程序的一部分。 为 ...
-
是否可以通过一键触摸两个Android设备通过NFC交换数据?(Is it possible to with one touch two Android devices exchange data via NFC?)[2022-05-08]
这取决于您要实现的目标以及您正在使用的Android版本: Android <4.0的两款设备 两个设备都可以发送一个 NDEF消息,每个消息都不需要用户交互。 消息不能相互依赖(即一个设备不可能发送消息而另一个设备发送消息)。 您将使用enableForegroundNdefPush()和enableForegroundDispatch()来实现此目的。 至少有一台Android <4.4的设备 两个设备可以(理论上)每次触摸发送一个 NDEF消息,但两个设备都需要用户交互(即用户需要触摸Beam UI) ... -
使用Android NFC向Java Card发送超过261个字节(Send more than 261 bytes to Java Card with Android NFC)[2022-07-18]
简短的回答:你不能轻易做到这一点。 您已经发现IsoDep不支持设备上的扩展长度APDU(即isoDep.isExtendedLengthApduSupported()返回false )。 实际上,这并不意味着您无法通过IsoDep对象发送扩展长度的APDU。 它实际上只意味着IsoDep对象不会跨两个以上的ISO-DEP块正确地分割扩展长度的APDU,因此假定长度超过261字节的APDU超过发送缓冲区大小。 您仍应该能够发送大小<= 261字节的扩展长度APDU。 所以isoDep.isExtendedL ... -
Android NFC(ATQB从ISO-14443 B型标签到手机)(Android NFC (ATQB from ISO-14443 Type B tag to phone))[2023-02-17]
我想你在找错了地方。 TRF7970A可能正在模拟包含NDEF消息的NFC论坛类型4标签 。 http://developer.android.com/guide/topics/nfc/nfc.html解释了如何产生意图 I think you are looking in the wrong place. The TRF7970A is probably emulating an NFC Forum Type 4 Tag, containing an NDEF message. How this resu ... -
操作系统和本机应用程序使用的字符串不能通过任何公共方法获得。 如果您要翻译您的应用程序,则需要将文本在上下文中翻译到您使用它的位置。 这不是一个直接的复制和粘贴练习。 这意味着您不能只重复使用其他来源的翻译。 (除非它是完全相同的背景。) The strings used by the OS and the native apps are not available via any public method. If you are looking to translate your app you nee ...