Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synergy-api-util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raimbek Egemberdiev
synergy-api-util
Commits
a56d945c
Commit
a56d945c
authored
Nov 11, 2016
by
Abzal Kultayev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK #CMER] Изменил класс PotentialClientPreviewCard
parent
5be381ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
src/main/java/kz/arta/synergy/api/services/RegistryService.java
...in/java/kz/arta/synergy/api/services/RegistryService.java
+34
-0
No files found.
src/main/java/kz/arta/synergy/api/services/RegistryService.java
0 → 100644
View file @
a56d945c
package
kz.arta.synergy.api.services
;
import
kz.arta.synergy.api.JsonUtils
;
import
kz.arta.synergy.api.Query
;
import
kz.arta.synergy.api.QueryContext
;
import
kz.arta.synergy.api.RestHttpQuery
;
import
java.io.IOException
;
/**
* Created by: Abzal Kultayev
* Date: 11.11.16
* Time: 18:17
*/
public
class
RegistryService
{
private
final
RestHttpQuery
restHttpQuery
;
public
RegistryService
(
QueryContext
context
)
{
this
.
restHttpQuery
=
new
RestHttpQuery
(
context
);
}
public
static
RegistryService
newInstance
(
QueryContext
context
)
{
return
new
RegistryService
(
context
);
}
public
String
createRegistryRecord
(
String
registryID
)
throws
IOException
{
Query
query
=
Query
.
newInstance
()
.
url
(
"/rest/api/registry/create_doc"
)
.
queryParam
(
"registryID"
,
registryID
);
String
response
=
restHttpQuery
.
doQuery
(
query
);
return
JsonUtils
.
readTree
(
response
).
get
(
"dataUUID"
).
getTextValue
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment