fix public api paths
This commit is contained in:
parent
6720504b7b
commit
2b692fa579
|
@ -1,29 +1,39 @@
|
|||
package eu.eudat.publicapi.configurations;
|
||||
|
||||
import eu.eudat.models.data.security.Principal;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.env.Environment;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.service.ApiInfo;
|
||||
import springfox.documentation.service.Contact;
|
||||
import springfox.documentation.service.SecurityScheme;
|
||||
import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
|
||||
@Configuration
|
||||
public class SwaggerConfiguration {
|
||||
|
||||
// private static final TypeResolver resolver = new TypeResolver();
|
||||
|
||||
@Autowired
|
||||
private Environment environment;
|
||||
|
||||
@Bean
|
||||
public Docket api() {
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
.host(this.environment.getProperty("publicapi.host"))
|
||||
.protocols(new HashSet<>(Collections.singleton(this.environment.getProperty("publicapi.schema"))))
|
||||
.select()
|
||||
.apis(RequestHandlerSelectors.basePackage("eu.eudat.publicapi.controllers"))
|
||||
.paths(PathSelectors.regex("/api/public/(dmps|datasets)/?.*"))
|
||||
.build().apiInfo(apiInfo())//.ignoredParameterTypes(Principal.class)
|
||||
.pathMapping(this.environment.getProperty("publicapi.basePath"))
|
||||
.useDefaultResponseMessages(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -58,56 +58,56 @@ public class PublicDatasetsDescriptionDocumentation extends BaseController {
|
|||
" \"totalCount\": 2,\n" +
|
||||
" \"data\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"aefc0f61-f2a7-410d-80c6-d3737afc0cd4\",\n" +
|
||||
" \"label\": \"Copied 27: Agrion forcipula .\",\n" +
|
||||
" \"grant\": \"Advanced Nitrogen Recovery from Sludge and other Organic Waste Materials (NITRO)\",\n" +
|
||||
" \"dmp\": \"DMP_Advanced_Nitrogen_Recovery_from_Sludge_and_other_Organic_Waste_Materials_(NITRO)_0.xml\",\n" +
|
||||
" \"dmpId\": \"8a8368a5-59e9-4d53-aaab-723da2df2d3b\",\n" +
|
||||
" \"id\": \"ef7dfbdc-c5c1-46a7-a37b-c8d8692f1c0e\",\n" +
|
||||
" \"label\": \"BARKAMOL RIVOJLANGAN SHAXSNI TARBIYALASHDA HARAKATLI O`YINLARNING O`RNI\",\n" +
|
||||
" \"grant\": \"A next generation nano media tailored to capture and recycle hazardous micropollutants in contaminated industrial wastewater.\",\n" +
|
||||
" \"dmp\": \"test for demo\",\n" +
|
||||
" \"dmpId\": \"9dee6e72-7a4c-4fbd-b8a4-1f8cda38eb5e\",\n" +
|
||||
" \"profile\": {\n" +
|
||||
" \"id\": \"0b5b52f3-266a-45cf-8066-d1e5a70d65e1\",\n" +
|
||||
" \"label\": \"Horizon 2020 (Devel Clone)\",\n" +
|
||||
" \"id\": \"771283d7-a5be-4a93-bd3c-8b1883fe837c\",\n" +
|
||||
" \"label\": \"Horizon Europe\",\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"createdAt\": 1652274681000,\n" +
|
||||
" \"modifiedAt\": 1652275258000,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"finalizedAt\": 1652275257000,\n" +
|
||||
" \"dmpPublishedAt\": 1652276406000,\n" +
|
||||
" \"createdAt\": 1662711279000,\n" +
|
||||
" \"modifiedAt\": 1662712928000,\n" +
|
||||
" \"description\": \"<p> Annotatsiya Maqolada bolalarni o`yin mavjud bo`lgan shakllarda mavjud <br>\\nhayot bilan kengroq tanishtirishga imkon beradi. O`yin bolalarning turli xil <br>\\nfaoliyati,o`yin ko`nikmalarini shakllantirishga yordam beradi.Ularni fikrlash, his-<br>\\ntuyg`ular, tajribalar, o`yin muammosini hal qilishning faol usullarini izlash, ularning <br>\\no`yin sharoitlari va sharoitlariga bo`ysunishi, o`yindagi bolalarning munosabatlari, <br>\\no`yin orqali bola organik rivojlanadi, inson madaniyatining muhim qatlami kattalar <br>\\no`rtasidagi munosabatlar - oilada, ularning kasbiy faoliyati va boshqalar. O`yin <br>\\no`qituvchilar barcha ta’lim vazifalarini, shu jumladan o`rganishni hal qiladigan eng <br>\\nmuhim faoliyat sifatida foydalaniladi. </p>\",\n" +
|
||||
" \"finalizedAt\": 1662712928000,\n" +
|
||||
" \"dmpPublishedAt\": 1662713226000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"users\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"4cb5671a-0575-4a50-878a-d1bdf59648a0\",\n" +
|
||||
" \"name\": \"George Kalampokis\",\n" +
|
||||
" \"id\": \"33024e48-d528-45a5-8035-ea48641bd2f2\",\n" +
|
||||
" \"name\": \"DMP author\",\n" +
|
||||
" \"role\": 0,\n" +
|
||||
" \"email\": \"gkfortests@gmail.com\",\n" +
|
||||
" \"email\": \"kanavou.p@gmail.com\",\n" +
|
||||
" \"hint\": \"UserInfoListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"hint\": \"datasetListingModel\"\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"f3b241fc-c692-4bb6-b10e-b2a4e2829f9e\",\n" +
|
||||
" \"label\": \"manually 23\",\n" +
|
||||
" \"grant\": \"Advanced Nitrogen Recovery from Sludge and other Organic Waste Materials (NITRO)\",\n" +
|
||||
" \"dmp\": \"DMP_Advanced_Nitrogen_Recovery_from_Sludge_and_other_Organic_Waste_Materials_(NITRO)_0.xml\",\n" +
|
||||
" \"dmpId\": \"8a8368a5-59e9-4d53-aaab-723da2df2d3b\",\n" +
|
||||
" \"id\": \"0f253ab2-18cb-4798-adc1-135b81cfad0c\",\n" +
|
||||
" \"label\": \"A \\\"zoom-elit\\\" és a kamionosok küzdelme, avagy a meritokrácia és a populizmus összecsapása\",\n" +
|
||||
" \"grant\": \"Discovery Projects - Grant ID: DP140100157\",\n" +
|
||||
" \"dmp\": \"TEST UPDATE 2.8.2022\",\n" +
|
||||
" \"dmpId\": \"1f4daa8f-4e2f-4dc9-a60b-f6b75d313400\",\n" +
|
||||
" \"profile\": {\n" +
|
||||
" \"id\": \"0b5b52f3-266a-45cf-8066-d1e5a70d65e1\",\n" +
|
||||
" \"label\": \"Horizon 2020 (Devel Clone)\",\n" +
|
||||
" \"id\": \"3d43ba45-25fa-4815-81b4-9bf22ecd8316\",\n" +
|
||||
" \"label\": \"HE_Final\",\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"createdAt\": 1652274735000,\n" +
|
||||
" \"modifiedAt\": 1652275259000,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"finalizedAt\": 1652275258000,\n" +
|
||||
" \"dmpPublishedAt\": 1652276406000,\n" +
|
||||
" \"createdAt\": 1659392761000,\n" +
|
||||
" \"modifiedAt\": 1659393655000,\n" +
|
||||
" \"description\": \"<p>A kanadai kamionosok „szabadságmenete” kapcsán a New York Times hasábjain Ross Donthat publicista egy régi könyvre hívja fel a figyelmet, amely sok évtizeddel ezelőtt megjósolta az elit elleni hasonló lázadásokat.</p>\",\n" +
|
||||
" \"finalizedAt\": 1659393654000,\n" +
|
||||
" \"dmpPublishedAt\": 1659393698000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"users\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"4cb5671a-0575-4a50-878a-d1bdf59648a0\",\n" +
|
||||
" \"name\": \"George Kalampokis\",\n" +
|
||||
" \"id\": \"33024e48-d528-45a5-8035-ea48641bd2f2\",\n" +
|
||||
" \"name\": \"DMP author\",\n" +
|
||||
" \"role\": 0,\n" +
|
||||
" \"email\": \"gkfortests@gmail.com\",\n" +
|
||||
" \"email\": \"kanavou.p@gmail.com\",\n" +
|
||||
" \"hint\": \"UserInfoListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
|
@ -160,32 +160,32 @@ public class PublicDatasetsDescriptionDocumentation extends BaseController {
|
|||
" \"responseType\": 0,\n" +
|
||||
" \"message\": null,\n" +
|
||||
" \"payload\": {\n" +
|
||||
" \"id\": \"aefc0f61-f2a7-410d-80c6-d3737afc0cd4\",\n" +
|
||||
" \"label\": \"Copied 27: Agrion forcipula .\",\n" +
|
||||
" \"id\": \"ef7dfbdc-c5c1-46a7-a37b-c8d8692f1c0e\",\n" +
|
||||
" \"label\": \"BARKAMOL RIVOJLANGAN SHAXSNI TARBIYALASHDA HARAKATLI O`YINLARNING O`RNI\",\n" +
|
||||
" \"reference\": null,\n" +
|
||||
" \"uri\": null,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"description\": \"<p> Annotatsiya Maqolada bolalarni o`yin mavjud bo`lgan shakllarda mavjud <br>\\nhayot bilan kengroq tanishtirishga imkon beradi. O`yin bolalarning turli xil <br>\\nfaoliyati,o`yin ko`nikmalarini shakllantirishga yordam beradi.Ularni fikrlash, his-<br>\\ntuyg`ular, tajribalar, o`yin muammosini hal qilishning faol usullarini izlash, ularning <br>\\no`yin sharoitlari va sharoitlariga bo`ysunishi, o`yindagi bolalarning munosabatlari, <br>\\no`yin orqali bola organik rivojlanadi, inson madaniyatining muhim qatlami kattalar <br>\\no`rtasidagi munosabatlar - oilada, ularning kasbiy faoliyati va boshqalar. O`yin <br>\\no`qituvchilar barcha ta’lim vazifalarini, shu jumladan o`rganishni hal qiladigan eng <br>\\nmuhim faoliyat sifatida foydalaniladi. </p>\",\n" +
|
||||
" \"status\": 1,\n" +
|
||||
" \"createdAt\": 1652274681000,\n" +
|
||||
" \"createdAt\": 1662711279000,\n" +
|
||||
" \"dmp\": {\n" +
|
||||
" \"id\": \"8a8368a5-59e9-4d53-aaab-723da2df2d3b\",\n" +
|
||||
" \"label\": \"DMP_Advanced_Nitrogen_Recovery_from_Sludge_and_other_Organic_Waste_Materials_(NITRO)_0.xml\",\n" +
|
||||
" \"grant\": \"Advanced Nitrogen Recovery from Sludge and other Organic Waste Materials (NITRO)\",\n" +
|
||||
" \"createdAt\": 1652274679000,\n" +
|
||||
" \"modifiedAt\": 1652276406000,\n" +
|
||||
" \"id\": \"9dee6e72-7a4c-4fbd-b8a4-1f8cda38eb5e\",\n" +
|
||||
" \"label\": \"test for demo\",\n" +
|
||||
" \"grant\": \"A next generation nano media tailored to capture and recycle hazardous micropollutants in contaminated industrial wastewater.\",\n" +
|
||||
" \"createdAt\": 1662710691000,\n" +
|
||||
" \"modifiedAt\": 1662713226000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"groupId\": \"5c3f8569-e3f2-4701-a5f0-8d8b2c07cc49\",\n" +
|
||||
" \"groupId\": \"adaa4e17-7375-45b8-b052-09edaeb6da86\",\n" +
|
||||
" \"users\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"4cb5671a-0575-4a50-878a-d1bdf59648a0\",\n" +
|
||||
" \"name\": \"George Kalampokis\",\n" +
|
||||
" \"id\": \"33024e48-d528-45a5-8035-ea48641bd2f2\",\n" +
|
||||
" \"name\": \"DMP author\",\n" +
|
||||
" \"role\": 0,\n" +
|
||||
" \"email\": \"gkfortests@gmail.com\",\n" +
|
||||
" \"email\": \"kanavou.p@gmail.com\",\n" +
|
||||
" \"hint\": \"UserInfoListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"finalizedAt\": 1652276406000,\n" +
|
||||
" \"publishedAt\": 1652276406000,\n" +
|
||||
" \"finalizedAt\": 1662713226000,\n" +
|
||||
" \"publishedAt\": 1662713226000,\n" +
|
||||
" \"hint\": \"dataManagementPlanListingModel\"\n" +
|
||||
" },\n" +
|
||||
" \"datasetProfileDefinition\": {\n" +
|
||||
|
@ -199,11 +199,11 @@ public class PublicDatasetsDescriptionDocumentation extends BaseController {
|
|||
" \"tags\": null,\n" +
|
||||
" \"externalDatasets\": [],\n" +
|
||||
" \"profile\": {\n" +
|
||||
" \"id\": \"0b5b52f3-266a-45cf-8066-d1e5a70d65e1\",\n" +
|
||||
" \"label\": \"Horizon 2020 (Devel Clone)\",\n" +
|
||||
" \"id\": \"771283d7-a5be-4a93-bd3c-8b1883fe837c\",\n" +
|
||||
" \"label\": \"Horizon Europe\",\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"modifiedAt\": 1652275258000,\n" +
|
||||
" \"modifiedAt\": 1662712928000,\n" +
|
||||
" \"hint\": \"datasetOverviewModel\"\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
@ -233,7 +233,7 @@ public class PublicDatasetsDescriptionDocumentation extends BaseController {
|
|||
@ApiOperation(value = "This method is used to get the overview of a public dataset.", notes = getOverviewSinglePublicNotes)
|
||||
@ApiResponses(value = {@ApiResponse(
|
||||
code = 200,
|
||||
message = "The following example is generated using id: *aefc0f61-f2a7-410d-80c6-d3737afc0cd4*",
|
||||
message = "The following example is generated using id: *ef7dfbdc-c5c1-46a7-a37b-c8d8692f1c0e*",
|
||||
examples = @Example({@ExampleProperty(
|
||||
value = getOverviewSinglePublicResponseExample,
|
||||
mediaType = APPLICATION_JSON_VALUE
|
||||
|
|
|
@ -57,29 +57,29 @@ public class PublicDmpsDocumentation extends BaseController {
|
|||
" \"totalCount\": 2,\n" +
|
||||
" \"data\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"912d87de-fce9-48e0-84a7-d5499d10682d\",\n" +
|
||||
" \"label\": \"Dmp For Project : 0/ANDRE\",\n" +
|
||||
" \"grant\": \"0/ANDRE\",\n" +
|
||||
" \"createdAt\": 1554128271000,\n" +
|
||||
" \"modifiedAt\": 1554128271000,\n" +
|
||||
" \"id\": \"e9a73d77-adfa-4546-974f-4a4a623b53a8\",\n" +
|
||||
" \"label\": \"Giorgos's DMP\",\n" +
|
||||
" \"grant\": \"Novel EOSC services for Emerging Atmosphere, Underwater and Space Challenges\",\n" +
|
||||
" \"createdAt\": 1579077317000,\n" +
|
||||
" \"modifiedAt\": 1586444334000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"groupId\": \"764ec97d-2475-4a75-843f-d620cffbdc3f\",\n" +
|
||||
" \"groupId\": \"d949592d-f862-4b31-a43a-f5f70596df5e\",\n" +
|
||||
" \"users\": [],\n" +
|
||||
" \"finalizedAt\": 1554128271000,\n" +
|
||||
" \"publishedAt\": 1554128271000,\n" +
|
||||
" \"finalizedAt\": 1586444334000,\n" +
|
||||
" \"publishedAt\": 1586444334000,\n" +
|
||||
" \"hint\": \"dataManagementPlanListingModel\"\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"43809706-0176-4d5c-b47c-c240ac5d874e\",\n" +
|
||||
" \"label\": \"Dmp new version clone\",\n" +
|
||||
" \"grant\": \"SMAD\",\n" +
|
||||
" \"createdAt\": 1539593145000,\n" +
|
||||
" \"modifiedAt\": 1539593145000,\n" +
|
||||
" \"version\": 2,\n" +
|
||||
" \"groupId\": \"536d9779-166e-4b55-ad3e-f93c06338598\",\n" +
|
||||
" \"id\": \"e27789f1-de35-4b4a-9587-a46d131c366e\",\n" +
|
||||
" \"label\": \"TestH2020Clone3\",\n" +
|
||||
" \"grant\": \"Evaluation of the Benefits of innovative Concepts of laminar nacelle and HTP installed on a business jet configuration\",\n" +
|
||||
" \"createdAt\": 1600774437000,\n" +
|
||||
" \"modifiedAt\": 1600879107000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"groupId\": \"7b793c17-cb69-41d2-a97d-e8d1b03ddbed\",\n" +
|
||||
" \"users\": [],\n" +
|
||||
" \"finalizedAt\": 1539593145000,\n" +
|
||||
" \"publishedAt\": 1539593145000,\n" +
|
||||
" \"finalizedAt\": 1600879107000,\n" +
|
||||
" \"publishedAt\": 1600879107000,\n" +
|
||||
" \"hint\": \"dataManagementPlanListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
|
@ -133,58 +133,58 @@ public class PublicDmpsDocumentation extends BaseController {
|
|||
" \"responseType\": 0,\n" +
|
||||
" \"message\": null,\n" +
|
||||
" \"payload\": {\n" +
|
||||
" \"id\": \"912d87de-fce9-48e0-84a7-d5499d10682d\",\n" +
|
||||
" \"label\": \"Dmp For Project : 0/ANDRE\",\n" +
|
||||
" \"id\": \"e9a73d77-adfa-4546-974f-4a4a623b53a8\",\n" +
|
||||
" \"label\": \"Giorgos's DMP\",\n" +
|
||||
" \"profile\": null,\n" +
|
||||
" \"grant\": {\n" +
|
||||
" \"id\": \"79d35744-3bf4-4178-8bb0-bbc7110788d5\",\n" +
|
||||
" \"label\": \"0/ANDRE\",\n" +
|
||||
" \"id\": \"c8309ae5-4e56-43eb-aa5a-9950c24051fe\",\n" +
|
||||
" \"label\": \"Novel EOSC services for Emerging Atmosphere, Underwater and Space Challenges\",\n" +
|
||||
" \"abbreviation\": null,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"startDate\": null,\n" +
|
||||
" \"endDate\": null,\n" +
|
||||
" \"uri\": null,\n" +
|
||||
" \"funder\": {\n" +
|
||||
" \"id\": \"baa92ce2-5ed8-4af0-8b9d-8eeabb8c3dbc\",\n" +
|
||||
" \"label\": \"0/ANDRE\",\n" +
|
||||
" \"id\": \"25e76828-3539-4c66-9870-0ecea7a4d16e\",\n" +
|
||||
" \"label\": \"European Commission||EC\",\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"createdAt\": 1554128271000,\n" +
|
||||
" \"modifiedAt\": 1554128271000,\n" +
|
||||
" \"finalizedAt\": 1554128271000,\n" +
|
||||
" \"createdAt\": 1579077317000,\n" +
|
||||
" \"modifiedAt\": 1586444334000,\n" +
|
||||
" \"finalizedAt\": 1586444334000,\n" +
|
||||
" \"organisations\": [],\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"groupId\": \"764ec97d-2475-4a75-843f-d620cffbdc3f\",\n" +
|
||||
" \"groupId\": \"d949592d-f862-4b31-a43a-f5f70596df5e\",\n" +
|
||||
" \"datasets\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"ac0bf9b2-5804-456c-a5eb-6f797f888a28\",\n" +
|
||||
" \"label\": \"Dataset : Checks export order For Dmp : Dmp For Project : 0/ANDRE\",\n" +
|
||||
" \"id\": \"853a24c3-def4-4978-985f-92e7fa57ef22\",\n" +
|
||||
" \"label\": \"Giorgos's Dataset Desc\",\n" +
|
||||
" \"reference\": null,\n" +
|
||||
" \"uri\": null,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"status\": 1,\n" +
|
||||
" \"createdAt\": 1554127718000,\n" +
|
||||
" \"createdAt\": 1579077532000,\n" +
|
||||
" \"dmp\": {\n" +
|
||||
" \"id\": \"912d87de-fce9-48e0-84a7-d5499d10682d\",\n" +
|
||||
" \"label\": \"Dmp For Project : 0/ANDRE\",\n" +
|
||||
" \"grant\": \"0/ANDRE\",\n" +
|
||||
" \"createdAt\": 1554128271000,\n" +
|
||||
" \"modifiedAt\": 1554128271000,\n" +
|
||||
" \"id\": \"e9a73d77-adfa-4546-974f-4a4a623b53a8\",\n" +
|
||||
" \"label\": \"Giorgos's DMP\",\n" +
|
||||
" \"grant\": \"Novel EOSC services for Emerging Atmosphere, Underwater and Space Challenges\",\n" +
|
||||
" \"createdAt\": 1579077317000,\n" +
|
||||
" \"modifiedAt\": 1586444334000,\n" +
|
||||
" \"version\": 0,\n" +
|
||||
" \"groupId\": \"764ec97d-2475-4a75-843f-d620cffbdc3f\",\n" +
|
||||
" \"groupId\": \"d949592d-f862-4b31-a43a-f5f70596df5e\",\n" +
|
||||
" \"users\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"e602dad2-2814-401b-b03f-ba05ba799bdc\",\n" +
|
||||
" \"name\": \"Georgios Kolokythas\",\n" +
|
||||
" \"id\": \"00476b4d-0491-44ca-b2fd-92e695062a48\",\n" +
|
||||
" \"name\": \"OpenDMP OpenDMP\",\n" +
|
||||
" \"role\": 0,\n" +
|
||||
" \"email\": \"iamgeorgioskolokythas@gmail.com\",\n" +
|
||||
" \"email\": \"opendmpeu@gmail.com\",\n" +
|
||||
" \"hint\": \"UserInfoListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"finalizedAt\": 1554128271000,\n" +
|
||||
" \"publishedAt\": 1554128271000,\n" +
|
||||
" \"finalizedAt\": 1586444334000,\n" +
|
||||
" \"publishedAt\": 1586444334000,\n" +
|
||||
" \"hint\": \"dataManagementPlanListingModel\"\n" +
|
||||
" },\n" +
|
||||
" \"datasetProfileDefinition\": {\n" +
|
||||
|
@ -198,33 +198,37 @@ public class PublicDmpsDocumentation extends BaseController {
|
|||
" \"tags\": null,\n" +
|
||||
" \"externalDatasets\": [],\n" +
|
||||
" \"profile\": {\n" +
|
||||
" \"id\": \"01a85982-7cec-41c5-b1f1-74a646e0368b\",\n" +
|
||||
" \"label\": \"Checks export order\",\n" +
|
||||
" \"id\": \"2a6e0835-349e-412c-9fcc-8e1298ce8a5a\",\n" +
|
||||
" \"label\": \"Horizon 2020\",\n" +
|
||||
" \"hint\": null\n" +
|
||||
" },\n" +
|
||||
" \"modifiedAt\": 1554128182000,\n" +
|
||||
" \"modifiedAt\": 1579077898000,\n" +
|
||||
" \"hint\": \"datasetOverviewModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"associatedProfiles\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"01a85982-7cec-41c5-b1f1-74a646e0368b\",\n" +
|
||||
" \"label\": \"Checks export order\"\n" +
|
||||
" \"id\": \"f41bd794-761d-4fe8-ab67-3a989d982c53\",\n" +
|
||||
" \"label\": \"Swedish Research Council\"\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"2a6e0835-349e-412c-9fcc-8e1298ce8a5a\",\n" +
|
||||
" \"label\": \"Horizon 2020\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"researchers\": [],\n" +
|
||||
" \"users\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": \"e602dad2-2814-401b-b03f-ba05ba799bdc\",\n" +
|
||||
" \"name\": \"Georgios Kolokythas\",\n" +
|
||||
" \"id\": \"00476b4d-0491-44ca-b2fd-92e695062a48\",\n" +
|
||||
" \"name\": \"OpenDMP OpenDMP\",\n" +
|
||||
" \"role\": 0,\n" +
|
||||
" \"email\": \"iamgeorgioskolokythas@gmail.com\",\n" +
|
||||
" \"email\": \"opendmpeu@gmail.com\",\n" +
|
||||
" \"hint\": \"UserInfoListingModel\"\n" +
|
||||
" }\n" +
|
||||
" ],\n" +
|
||||
" \"description\": \"Hello\",\n" +
|
||||
" \"publishedAt\": 1554128271000,\n" +
|
||||
" \"doi\": null,\n" +
|
||||
" \"description\": null,\n" +
|
||||
" \"publishedAt\": 1586444334000,\n" +
|
||||
" \"doi\": \"10.5072/zenodo.522151\",\n" +
|
||||
" \"hint\": \"dataManagementPlanOverviewModel\"\n" +
|
||||
" }\n" +
|
||||
"}";
|
||||
|
@ -257,7 +261,7 @@ public class PublicDmpsDocumentation extends BaseController {
|
|||
@ApiOperation(value = "This method is used to get the overview of a public dmp.", notes = getOverviewSinglePublicNotes)
|
||||
@ApiResponses(value = {@ApiResponse(
|
||||
code = 200,
|
||||
message = "The following example is generated using id: *912d87de-fce9-48e0-84a7-d5499d10682d*",
|
||||
message = "The following example is generated using id: *e9a73d77-adfa-4546-974f-4a4a623b53a8*",
|
||||
examples = @Example({@ExampleProperty(
|
||||
value = getOverviewSinglePublicResponseExample,
|
||||
mediaType = APPLICATION_JSON_VALUE
|
||||
|
|
|
@ -85,6 +85,11 @@ zenodo.login.client_id=
|
|||
zenodo.login.client_secret=
|
||||
zenodo.login.redirect_uri=http://localhost:4200/login/external/zenodo
|
||||
|
||||
############PUBLIC API CONFIGUARION###############
|
||||
publicapi.host=devel.opendmp.eu
|
||||
publicapi.basePath=/srv
|
||||
publicapi.schema=https
|
||||
|
||||
#############CONTACT EMAIL CONFIGURATIONS#########
|
||||
contact_email.mail=
|
||||
|
||||
|
|
Loading…
Reference in New Issue