Skip to content

Commit

Permalink
fix: visualize web with context (#326)
Browse files Browse the repository at this point in the history
* test: add json questionnaire in resources

* fix: add context param in pogues to lunatic endpoint

* refactor: eno client and visualize related classes

* chore: bump version
  • Loading branch information
nsenave committed Nov 22, 2024
1 parent 38ffb9e commit 3dd68f8
Show file tree
Hide file tree
Showing 15 changed files with 453 additions and 312 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<groupId>fr.insee</groupId>
<artifactId>Pogues-BO</artifactId>
<packaging>jar</packaging>
<version>4.9.2</version>
<version>4.9.2-SNAPSHOT.1</version>
<name>Pogues-Back-Office</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
package fr.insee.pogues.api.remote.eno.transforms;

import fr.insee.pogues.exception.EnoException;
import fr.insee.pogues.webservice.rest.PoguesException;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;

/**
* Client with methods to call Eno-WS external web-service.
*/
public interface EnoClient {
/**
*
* Call the Eno API to convert ddi 3.2 data in ddi 3.3
*
* @param inputAsString
* @return String
* @throws Exception
*/
String getDDI32ToDDI33 (String inputAsString) throws Exception;

String getDDIToODT (String inputAsString) throws Exception;

String getXMLPoguesToDDI (String inputAsString) throws Exception;

/** Only used as a health-check for the Eno external web-service. */
void getParameters();

String getPoguesXmlToDDI(String inputAsString) throws EnoException, PoguesException;

String getDDIToODT (String inputAsString) throws EnoException, PoguesException;

String getDDIToFO(String inputAsString) throws URISyntaxException, IOException, EnoException;

String getDDITOLunaticXML(String inputAsString) throws URISyntaxException, IOException, EnoException;

String getDDITOLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException;

String getDDITOXForms(String inputAsString) throws URISyntaxException, IOException, EnoException;

String getJSONPoguesToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException;

void getParameters () throws Exception;

String getDDIToXForms(String inputAsString) throws URISyntaxException, IOException, EnoException;

/** @deprecated Use Pogues to Lunatic method instead. */
@Deprecated(since = "4.9.2")
String getDDIToLunaticJSON(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException;

String getPoguesJsonToLunaticJson(String inputAsString, Map<String, Object> params) throws URISyntaxException, IOException, EnoException;

}

This file was deleted.

Loading

0 comments on commit 3dd68f8

Please sign in to comment.