File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/com/ctrlhub/core/datacapture Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class FormSchemasRouter(httpClient: HttpClient) : Router(httpClient) {
17
17
formId : String ,
18
18
requestParameters : RequestParameters = RequestParameters ()
19
19
): PaginatedList <FormSchema > {
20
- val endpoint = " /v3/orgs/${ organisationId} /data-capture/forms/{$formId }/schemas"
20
+ val endpoint = " /v3/orgs/$organisationId /data-capture/forms/{$formId }/schemas"
21
21
22
22
val response = performGet(endpoint, requestParameters.toMap())
23
23
val jsonContent = Json .parseToJsonElement(response.body<String >()).jsonObject
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class FormsRouter(httpClient: HttpClient) : Router(httpClient) {
24
24
requestParameters : RequestParameters = RequestParameters ()
25
25
): PaginatedList <Form > {
26
26
return fetchPaginatedJsonApiResources(
27
- " /v3/orgs/${ organisationId} /data-capture/forms" ,
27
+ " /v3/orgs/$organisationId /data-capture/forms" ,
28
28
requestParameters.toMap(),
29
29
Form ::class .java
30
30
)
@@ -38,7 +38,7 @@ class FormsRouter(httpClient: HttpClient) : Router(httpClient) {
38
38
* @return FOrm
39
39
*/
40
40
suspend fun one (organisationId : String , formId : String ): Form {
41
- return fetchJsonApiResource(" /v3/orgs/${ organisationId} /data-capture-forms/${ formId} " )
41
+ return fetchJsonApiResource(" /v3/orgs/$organisationId /data-capture-forms/$formId " )
42
42
}
43
43
}
44
44
You can’t perform that action at this time.
0 commit comments