首页 \ 问答 \ 播放Swagger UI网址别名(Play Swagger UI url alias)

播放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 use WS for delegating, I would like to use single line in routes, 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
更新时间:2022-06-02 13:06

最满意答案

是一个维基解释了这款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 ...
  • 我已经解决了这个问题。 事实证明,将自定义文本写入标记需要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版本: Android <4.0的两款设备 两个设备都可以发送一个 NDEF消息,每个消息都不需要用户交互。 消息不能相互依赖(即一个设备不可能发送消息而另一个设备发送消息)。 您将使用enableForegroundNdefPush()和enableForegroundDispatch()来实现此目的。 至少有一台Android <4.4的设备 两个设备可以(理论上)每次触摸发送一个 NDEF消息,但两个设备都需要用户交互(即用户需要触摸Beam UI) ...
  • 简短的回答:你不能轻易做到这一点。 您已经发现IsoDep不支持设备上的扩展长度APDU(即isoDep.isExtendedLengthApduSupported()返回false )。 实际上,这并不意味着您无法通过IsoDep对象发送扩展长度的APDU。 它实际上只意味着IsoDep对象不会跨两个以上的ISO-DEP块正确地分割扩展长度的APDU,因此假定长度超过261字节的APDU超过发送缓冲区大小。 您仍应该能够发送大小<= 261字节的扩展长度APDU。 所以isoDep.isExtendedL ...
  • 我想你在找错了地方。 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 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。