About WebAPI, JSON
|
2017-09-26, 03:36
Post: #1
|
|||
|
|||
About WebAPI, JSON
Hi guys, Can you consider increasing support for the WEB API and JSON?
iPXE is a great tool, if you can support WEBAPI, its ability will be greatly enhanced. Thank you for bringing so easy to use tools! |
|||
2017-09-26, 06:43
Post: #2
|
|||
|
|||
RE: About WebAPI, JSON
What kind of API, why, and what would it be used for?
Use GitHub Discussions VRAM bin |
|||
2017-09-26, 08:22
Post: #3
|
|||
|
|||
RE: About WebAPI, JSON
(2017-09-26 06:43)NiKiZe Wrote: What kind of API, why, and what would it be used for? WebAPI can use in iPXE script to get some data from web api server. for example, the command "webapi" is new command: webapi <setting> <web api address> script: Code: webapi iscsiaddress http://api.example.com/GetiSCSIAddress/${net0/ip} |
|||
2017-09-26, 12:02
Post: #4
|
|||
|
|||
RE: About WebAPI, JSON
(2017-09-26 08:22)BloodFox Wrote: You can already achieve this; simply have your web server return a trivial iPXE script such as: Code: #!ipxe Michael |
|||
2017-09-26, 21:10
Post: #5
|
|||
|
|||
RE: About WebAPI, JSON
As Michael wrote, just return a script,
If you want a script that just sets options for you do this: Code: chain http://api.example.com/GetiSCSIAddress/${net0/ip} Where that endpoint simply returns Code: #!ipxe Just have your api check for the ipxe user-agent I'm using this on http://b800.org to make it easy to type by hand if need be. Code: chain http://b800.org/ You can force the same output as is given to iPXE as user-agent by visiting: http://b800.org/?ipxe=1 Use GitHub Discussions VRAM bin |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)