diff --git a/v1/Application.cfc b/v1/Application.cfc
index a1f595b..ca1aab5 100644
--- a/v1/Application.cfc
+++ b/v1/Application.cfc
@@ -51,7 +51,7 @@
//variables.framework.docs={};
variables.framework.docs.APIName="svc-api";
- variables.framework.docs.APIVersion="0.132"; /*instance_operation_cfs_param bug*/ /*$ git config --global --unset user.password*/
+ variables.framework.docs.APIVersion="0.133"; /*resource_realm debug*/ /*$ git config --global --unset user.password*/
variables.framework.globalHeaders = structNew();
diff --git a/v1/resources/available_resource_realms.cfc b/v1/resources/available_resource_realms.cfc
new file mode 100644
index 0000000..3c6c76b
--- /dev/null
+++ b/v1/resources/available_resource_realms.cfc
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ select
+
+ s.specification_id
+ s.specification
+ c.contract_id
+ c.contract
+ u.usr_id
+ u.login
+ z.contragent_id
+ z.contragent
+ z.external_code
+
+ from specification s
+ left outer join contract c on (s.contract_id=c.contract_id)
+ left outer join usr u on (c.contragent_id=u.contragent_id)
+ left outer join contragent z on (u.contragent_id=z.contragent_id)
+ where u.usr_id=
+ order by specification_id desc;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/v1/resources/user.cfc b/v1/resources/user.cfc
index b5010f9..b6e3b45 100644
--- a/v1/resources/user.cfc
+++ b/v1/resources/user.cfc
@@ -41,7 +41,8 @@
join contract c on (s.contract_id=c.contract_id)
join usr u on (c.contragent_id=u.contragent_id)
where u.usr_id=
- order by specification_id desc limit 1;
+ order by specification_id desc
+ limit 1;