首页 \ 问答 \ 对Swagger UI标头的修改(Modifications to Swagger UI header)

对Swagger UI标头的修改(Modifications to Swagger UI header)

我使用Swashbuckle和Swagger API创建了一个个人WEB API。

虽然我能够成功整合,但我想修改Swagger的默认UI。 更改标题的颜色并替换swagger图像。

附加是我想改变的想象的一部分。

这可能通过修改现有的文件?


I have created a personal WEB API using Swashbuckle and Swagger API.

While I am able to integrate this successfully, I would like to modify the default UI for Swagger. Changing the color of the header and replacing the swagger image.

Attached is the part of the imagine I want to change.

Is this possible by modifying existing files?


原文:https://stackoverflow.com/questions/36291146
更新时间:2023-10-13 11:10

最满意答案

那么,只有HTTP请求才能做到这一点,但您可以使用以下技术:

  1. 远程地址
  2. 饼干/会话
  3. 用户代理
  4. 客户端Web技术(例如Java或Flash或Silverlight对象)

基本上,您可以使用Evercookie的概念来识别客户。 这就是说,为什么不使用登录系统?


Well, you won't be able to do this from only the HTTP request, but you do have at your disposal the following techniques:

  1. Remote Address
  2. Cookies/Session
  3. User Agent
  4. Client-side Web Technologies (e.g. Java or Flash or Silverlight object)

Basically, you can use the concepts of Evercookie to identifiy a client. That being said, why not just use a login system?

相关问答

更多
  • “执行”是什么意思? 如果在解释器中执行它(通过lli ),那么是的,每个LLVM指令都是唯一的Value* 。 如果将其编译为机器代码并执行它,则可以使用调试信息来关联LLVM指令和从中生成的机器代码。 它比较棘手,但可行。 一些复杂功能,例如从同一LLVM指令生成的多个机器代码实例等。 What do you mean by "execute" it? If you execute it in the interpreter (via lli), then yes, each LLVM instruct ...
  • 另一种解决方案是将许可技术与加密狗一起使用。 这是一个小型设备,可插入USB或主机上的另一个I / O端口,并作为一个独特的物理键激活软件。 第三个解决方案是提供许可证管理器 。 也就是说,当软件启动时,它会查询网络上的服务器(无论是在客户的LAN上还是通过互联网访问您的公司),验证客户对软件的使用是否合法。 这是“并发许可证”的一个很好的解决方案,因此客户可以在许多主机上安装软件,但是您可以在有限数量的主机上同时使用许可证。 FLEXnet Publisher是许可证管理解决方案的一个例子。 网卡的MAC ...
  • Windows有一个独特的HWND。 此线程讨论如何获取当前活动窗口的信息。 你可以做这样的事情,然后获得窗口标题。 Although window handles are unique, but they are never the same value for the same form, they are only unique between themselves, but a window will never have the same and unique value of its handl ...
  • 那么,只有HTTP请求才能做到这一点,但您可以使用以下技术: 远程地址 饼干/会话 用户代理 客户端Web技术(例如Java或Flash或Silverlight对象) 基本上,您可以使用Evercookie的概念来识别客户。 这就是说,为什么不使用登录系统? Well, you won't be able to do this from only the HTTP request, but you do have at your disposal the following techniques: Remo ...
  • 我同意Lenni ...如果IP地址是静态的,或者DHCP服务器始终将相同的IP地址分配给同一台计算机,那么IP地址是一种可行的解决方案。 或者,您也可以考虑通过“个人证书”进行身份验证......这就是他们在Firefox中引用的内容,不知道它是否是标准名称。 (很明显,我以前没有和他们合作过。) 基本上它们是安装在客户端(用户)机器上的SSL或PKI证书,它们将该机器标识为它所说的机器 - 也就是说,如果用户试图从没有证书的机器进行连接或没有你允许的证书,你会否认它们。 我不知道这个问题......对于 ...
  • 我会在客户端上创建一个GUID并将其存储在某个地方的设置中,然后将其发送给每个消息。 这可以存储在每个用户或计算机上的全局设置,以便获得基于用户或基于计算机的保真度。 这样做的好处是您不会存储任何个人数据,因此不会违反隐私法律。 I'd create a GUID on the client and store it in settings somewhere, then send that with each message. This can be stored in per user or globa ...
  • 您需要阅读Elisp手册中的窗口。 窗口可以通过select selected-window , next-window , get-buffer-window等函数返回的对象来识别...... You'll want to read up on windows in the Elisp manual. The windows can be identified by the objects returned by functions such as selected-window, next-window ...
  • 您必须放松约束:即使使用浏览器数字打印 ,您也无法保证不会更改并且不会丢失UID。 我通常的解决方案,工作得很好,但不能保证,是从服务器发送到浏览器的UID并将其存储在本地存储中。 请注意,精通电脑的用户可以将其删除或更改。 但如果用户不是你的敌人,那么效果很好。 选择本地存储Cookie的原因是: 没有到期 没有“清理”它们的工具,因为它们从一开始就受到限制,因此没有隐私泄露的cookie声誉 当然是JavaScript应用程序的更干净和更清晰的界面 You'll have to relax your c ...
  • 下一个最好的方法(但是涉及完全读取每个文件的方法,我可以避免它可以帮助)将比较文件大小和文件内容的散列(例如SHA-256)。 碰撞的可能性相当小,特别是在正常情况下。 我在NTFS上使用GetFileInformationByHandle方法,然后回退到FAT卷上的哈希。 在Dropbox的情况下,我认为,在后台观察文件系统更改时会运行一个服务或进程。 这是最可靠的方式,即使停止服务/流程,它也会停止工作。 The next best method (but one that involves readi ...
  • 没有可靠的方法来唯一地识别浏览器,因为没有什么能阻止两台计算机具有完全相同的配置(操作系统,浏览器,位置,cookie,闪存配置等)。 我们可以做的最好的事情是尽可能多地收集有关浏览器的信息。 这是众所周知的称为浏览器/设备指纹识别的方法。 虽然结果并不完美,但还是相当不错的。 浏览器的指纹通常包括浏览器名称,操作系统,字体,安装的插件等。您可以使用https://panopticlick.eff.org/测试浏览器的独特性。 There is no reliable way to uniquely ide ...

相关文章

更多

最新问答

更多
  • 获取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的基本操作命令。。。