AutoGRAPH.NET Service EnumSchemas (EN) — различия между версиями

Материал из TK
Перейти к: навигация, поиск
 
Строка 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 style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">[{"Name":"Demo"},{"Name":"DemoLite"},{"Name":"DemoLiteProperties"}]</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"}]

AutoGRAPHNET Service EnumSchemas.png