AutoGRAPH.NET Service EnumSchemas (EN) — различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
Строка 10: | Строка 10: | ||
public class RSchema |
public class RSchema |
||
{ |
{ |
||
+ | public string ID { get; set; } |
||
public string Name { get; set; } |
public string Name { get; set; } |
||
} |
} |
||
Строка 20: | Строка 21: | ||
Result: [[Media:EnumSchemas-result.json.txt|download file]] |
Result: [[Media:EnumSchemas-result.json.txt|download file]] |
||
− | <pre |
+ | <pre>[{"ID:"Demo","Name":"Demo"},{"ID":"DemoLite","Name":"DemoLite"},{"ID":"DemoLiteProperties","Name":"DemoLiteProperties"}]</pre> |
[[File:AutoGRAPHNET Service EnumSchemas.png]] |
[[File:AutoGRAPHNET Service EnumSchemas.png]] |
Текущая версия на 11:42, 11 февраля 2016
Get allowed schemas list from service.
WCF
Definition:
RSchema[] EnumSchemas()
Result:
public class RSchema { public string ID { get; set; } public string Name { get; set; } }
JSON
Call:
http://localhost:8300/EnumSchemas
Result: download file
[{"ID:"Demo","Name":"Demo"},{"ID":"DemoLite","Name":"DemoLite"},{"ID":"DemoLiteProperties","Name":"DemoLiteProperties"}]