diff --git a/pdf-text/README.md b/pdf-text/README.md new file mode 100644 index 0000000..f5363de --- /dev/null +++ b/pdf-text/README.md @@ -0,0 +1,3 @@ +# ws-pdf-text@1.1.2 + +Le code source de ce web service se trouve à l'adresse suivante : https://github.com/Inist-CNRS/web-services/tree/main/services/pdf-text diff --git a/pdf-text/examples.http b/pdf-text/examples.http new file mode 100644 index 0000000..fd3d287 --- /dev/null +++ b/pdf-text/examples.http @@ -0,0 +1,16 @@ +# These examples can be used directly in VSCode, using REST Client extension (humao.rest-client) +# They are important, because used to generate the tests.hurl file. + +# Décommenter/commenter les lignes voulues pour tester localement +@host=http://localhost:31976 +# @host=https://pdf-text.services.istex.fr + +### +# @name v1PdfText +# Description de la route +POST {{host}}/v1/pdf2txt?indent=true HTTP/1.1 +Content-Type: application/json + +[ + {"id":1,"value":"https://hal.science/hal-01990444v1/file/EGC_2019.pdf"} +] diff --git a/pdf-text/swagger.json b/pdf-text/swagger.json new file mode 100644 index 0000000..1153784 --- /dev/null +++ b/pdf-text/swagger.json @@ -0,0 +1,33 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "pdf-text - Transforme un PDF en texte à partir de l'URL", + "summary": "A partir d'une URL de PDF donnée, ce service retourne le texte contenu dans le fichier PDF", + "version": "1.1.2", + "termsOfService": "https://services.istex.fr/", + "contact": { + "name": "Inist-CNRS", + "url": "https://www.inist.fr/nous-contacter/" + } + }, + "servers": [ + { + "x-comment": "Will be automatically completed by the ezs server." + }, + { + "url": "http://vptdmservices.intra.inist.fr:49262/", + "description": "Latest version for production", + "#DISABLED#x-profil": "Standard" + } + ], + "tags": [ + { + "name": "pdf-text", + "description": "Transforme un PDF en texte à partir de l'URL", + "externalDocs": { + "description": "Plus de documentation", + "url": "https://github.com/inist-cnrs/web-services/tree/main/services/pdf-text" + } + } + ] +} \ No newline at end of file