AutoGRAPH.NET Service EnumSchemas — различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
== WCF == |
== WCF == |
||
| + | Определение:<syntaxhighlight lang="csharp"> |
||
| − | Определение:<pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">RSchema[] EnumSchemas()</pre> |
||
| + | RSchema[] EnumSchemas() |
||
| + | </syntaxhighlight> |
||
| + | Результат: <syntaxhighlight lang="csharp"> |
||
| − | Результат: <pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">public class RSchema |
||
| + | public class RSchema |
||
{ |
{ |
||
| − | + | public string Name { get; set; } |
|
| + | } |
||
| − | }</pre> |
||
| + | </syntaxhighlight> |
||
== JSON == |
== JSON == |
||
| + | Вызов: <syntaxhighlight lang="html4strict"> |
||
| − | Вызов: <pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">[http://localhost:8300/EnumSchemas http://localhost:8300/EnumSchemas]</pre> Результат: <pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">[{"Name":"Demo"},{"Name":"DemoLite"},{"Name":"DemoLiteProperties"}]</pre> [[File:AutoGRAPHNET Service EnumSchemas.png]] |
||
| + | http://localhost:8300/EnumSchemas |
||
| + | </syntaxhighlight> Результат: <pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);">[{"Name":"Demo"},{"Name":"DemoLite"},{"Name":"DemoLiteProperties"}]</pre> [[File:AutoGRAPHNET Service EnumSchemas.png]] |
||
== == |
== == |
||
