AutoGRAPH.NET Service EnumSchemas (EN) — различия между версиями
Admin (обсуждение | вклад) (Новая страница: «Get allowed schemas list from service. == WCF == Definition: <syntaxhighlight lang="csharp"> RSchema[] EnumSchemas() </syntaxhighlight> Result: <syntaxhighligh…») |
Admin (обсуждение | вклад) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 3: | Строка 3: | ||
== WCF == |
== WCF == |
||
− | Definition: |
+ | Definition: |
− | RSchema[] EnumSchemas() |
+ | <pre>RSchema[] EnumSchemas()</pre> |
− | </syntaxhighlight> |
||
+ | Result: |
||
− | Result: <syntaxhighlight lang="csharp"> |
||
+ | <pre> |
||
public class RSchema |
public class RSchema |
||
{ |
{ |
||
+ | public string ID { get; set; } |
||
public string Name { get; set; } |
public string Name { get; set; } |
||
} |
} |
||
+ | </pre> |
||
− | </syntaxhighlight> |
||
== JSON == |
== JSON == |
||
+ | Call: <pre>http://localhost:8300/EnumSchemas</pre> |
||
− | Call: <syntaxhighlight lang="html4strict"> |
||
− | http://localhost:8300/EnumSchemas |
||
− | </syntaxhighlight> |
||
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"}]