1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 16:34:45 -04:00

Swagger: implemented standard 500 and 501 error responses

This commit is contained in:
f4exb
2017-11-18 11:03:42 +01:00
parent 2b65fb2d62
commit 9fe66f960c
2 changed files with 71 additions and 15 deletions
+5 -1
View File
@@ -28,10 +28,14 @@ class WebAPIAdapterInterface
public:
virtual ~WebAPIAdapterInterface() {}
/**
* Handler of /sdrangel (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceSummary
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceSummary(
Swagger::SWGInstanceSummaryResponse& response __attribute__((unused)),
Swagger::SWGErrorResponse& error __attribute__((unused)))
{ return 0; }
{ return 501; }
};