Connecteur passerelle pour OpenADS
This repository has been archived on 2023-02-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Emmanuel Cazenave 5b788a5dff grab HTMLParser from six and adapt initialization to py3 (#39533) 2020-02-04 17:21:41 +01:00
atreal_openads grab HTMLParser from six and adapt initialization to py3 (#39533) 2020-02-04 17:21:41 +01:00
debian License: prepended license text to most files 2019-08-21 15:02:33 +00:00
tests Tests: fixed failing 'test_get_courrier_type' because of previous commit 2019-10-29 18:00:58 +01:00
.coveragerc License: prepended license text to most files 2019-08-21 15:02:33 +00:00
.flake8 Refactoring: fix most of the (many) 'flake8' complaints 2019-08-22 16:02:06 +00:00
.gitignore License: prepended license text to most files 2019-08-21 15:02:33 +00:00
.pylintrc Refactoring: fix most of the (many many) 'pylint' complaints 2019-08-22 14:44:52 +00:00
Jenkinsfile jenkins: use ci@entrouvert.org for notifications 2019-10-02 14:09:52 +02:00
LICENSE Added testing with tox, added AGPLv3 license, replaced namespace, and more 2019-07-16 11:27:19 +02:00
MANIFEST.in Added testing with tox, added AGPLv3 license, replaced namespace, and more 2019-07-16 11:27:19 +02:00
README Rebase from 'remote/origin' 2019-07-16 11:41:02 +02:00
manage.py License: prepended license text to most files 2019-08-21 15:02:33 +00:00
pylint.sh License: prepended license text to most files 2019-08-21 15:02:33 +00:00
setup.py License: prepended license text to most files 2019-08-21 15:02:33 +00:00
tox.ini tox: limit to xmlschema < 1.1, for Python 2 compatibility 2020-01-24 09:44:34 +01:00

README

Passerelle connector to openADS
===============================

Installation
------------

 - add to Passerelle installed apps settings:
   INSTALLED_APPS += ('atreal_openads',)


Usage
-----

 - create and configure new connector
   - Title/description: whatever you want
   - Collectivity: enter the technical ID from openADS
   - openADS API login : the login credential to connect to openADS.API
   - openADS API password : the password credential to connect to openADS.API
   - Extra debug: check if you want more debug logging

 - test service by clicking on the available links
   - the /test_openads_connexion/ endpoint try to establish a connection with openADS.API


Usage in w.c.s.
---------------

 - create dossier

   - a processing data to the workflow named 'Numéro dossier' with identifier 'numero_dossier'

   - wcs workflow action "call webservice"
     URL            : https://passerelle.dev.publik.love/atreal-openads/inst0/create_dossier/DIA/
     Method         : POST (JSON)
     Send form data : checked
     Response type  : JSON
     Identifier     : wsdia

   - wcs workflow action "processing data"
     Modify processing data:
        Field: Numéro dossier
        Value: wsdia_response_numero_dossier

   - wcs workflow action "message in history"
     Message        : "Récépissé reçu"
     Files attached : (Python expr) "utils.dict_from_prefix('wsdia_response_recepisse_', locals())"

 - get dossier

   - wcs workflow action "call webservice"
     URL            : https://passerelle.dev.publik.love/atreal-openads/inst0/get_dossier/DIA
     Data to send in parameter of the URL:
        Name : numero_dossier
        Value: (Python expr) "form_var_numero_dossier"
     Method         : GET
     Response type  : JSON
     Identifier     : wsetat

 - get courrier

   - wcs workflow action "call webservice"
     URL            : https://passerelle.dev.publik.love/atreal-openads/inst0/get_courrier/DIA
     Data to send in parameter of the URL:
        Name : numero_dossier
        Value: (Python expr) "form_var_numero_dossier"
     Method         : GET
     Response type  : JSON
     Identifier     : wscourrier


License
-------

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.