差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
java:web:restapi:http_method_cant_make_sense [2020/12/08 00:33] tony [Case Study: Power Management] |
java:web:restapi:http_method_cant_make_sense [2021/03/09 21:54] tony [Threat the P/N action as a store resource or use PATCH?] |
||
---|---|---|---|
行 14: | 行 14: | ||
PATCH /Systems/1/BIOS/Settings | PATCH /Systems/1/BIOS/Settings | ||
</code> | </code> | ||
- | 接著是更新firmware,以[[http://www.dell.com/support/manuals/tw/en/twdhs1/dell-active-system-mngr-v8.1/asm%20rest%20api-v1/manageddevicefirmware-put?guid=guid-ad63b2c1-00c4-4ce3-ad7a-a498e15f6636&lang=en-us|Dell ASM REST API]]為例,使用store resource的方式去操作: | + | 接著是更新firmware,以[[https://cpsdocs.dellemc.com/bundle/PFMGR_API_3/page/GUID-87FE88BA-FE97-4ECA-BF1E-46A23CC6414F.html|Dell ASM REST API]]為例,使用store resource的方式去操作: |
<code> | <code> | ||
PUT /ManagedDevice/firmware | PUT /ManagedDevice/firmware | ||
行 186: | 行 186: | ||
file.locked = Boolean.parseBoolean(updateFile.locked); | file.locked = Boolean.parseBoolean(updateFile.locked); | ||
if( updateFile.name != null ) | if( updateFile.name != null ) | ||
- | file.name = updateFile.name; | + | file.name = updateFile.name; |
return new ResponseEntity<String>("good", HttpStatus.OK); | return new ResponseEntity<String>("good", HttpStatus.OK); | ||
} | } |