Rest Api issue in SONIC

93 views
Skip to first unread message

Sarankumar Archunan

unread,
Oct 10, 2022, 5:18:05 AM10/10/22
to sonicproject
Hi,

In Sonic 202106 codebase, Swagger rest get API works but ‘operation failed’ error for post/put/patch/delete Rest Api's.

Switch model - Supermicro 1G switch

Issues:

1. HTTP is not working, Shows Type Error (Refer HTTP Error)

2. HTTPS POST/PUT/PATCH/DELETE not working (Refer PUT Error)

Requesting for solution and/or working examples in curl for POST, PUT, PATCH, DELETE.

Thanks and regards,
Sarankumar Archunan


HTTP Error.png
PUT Error.png

Masaru OKI

unread,
Oct 11, 2022, 1:47:46 PM10/11/22
to Sarankumar Archunan, sonicproject
Hi,

Do you use pre-built binary image?
INCLUDE_RESTAPI = n in rules/config at 202106 branch.
You need to rebuild the binary image with custom configuration, I think.

2022年10月10日(月) 18:18 Sarankumar Archunan <asarank...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/7a45d9b0-d630-44db-adab-201fe95467bcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages