Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
sygal-import-ws
Commits
e262d9b3
Commit
e262d9b3
authored
Jul 11, 2018
by
Bertrand Gauthier
Browse files
Correction README: on oublie les exemples en https
parent
156f4bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e262d9b3
...
...
@@ -116,32 +116,27 @@ $ docker ps
```
Le port sur lequel écoute le ws est indiqué dans la colonne
`PORTS`
.
Par exemple,
`0.0.0.0:8
080->8080
/tcp`
indique que le ws est accessible sur la machine hôte
à l'adresse
`localhost:8
080
`
.
Par exemple,
`0.0.0.0:8
443->8443
/tcp`
indique que le ws est accessible sur la machine hôte
à l'adresse
`
https://
localhost:8
443
`
.
## Les services fournis
Chaque vue en base de données peut être interrogée via un service dédié :
*
Acteur : localhost:8
080
/acteur
*
Doctorant : localhost:8
080
/doctorant
*
Individu : localhost:8
080
/individu
*
Role : localhost:8
080
/role
*
Source : localhost:8
080
/source
*
These : localhost:8
080
/these
*
Variable : localhost:8
080
/variable
*
Structure : localhost:8
080
/structure
*
Etablissement : localhost:8
080
/etablissement
*
Ecole doctorale : localhost:8
080
/ecole-doctorale
*
Unite de recherche : localhost:8
080
/unite-recherche
*
Acteur :
https://
localhost:8
443
/acteur
*
Doctorant :
https://
localhost:8
443
/doctorant
*
Individu :
https://
localhost:8
443
/individu
*
Role :
https://
localhost:8
443
/role
*
Source :
https://
localhost:8
443
/source
*
These :
https://
localhost:8
443
/these
*
Variable :
https://
localhost:8
443
/variable
*
Structure :
https://
localhost:8
443
/structure
*
Etablissement :
https://
localhost:8
443
/etablissement
*
Ecole doctorale :
https://
localhost:8
443
/ecole-doctorale
*
Unite de recherche :
https://
localhost:8
443
/unite-recherche
Exemple :
```
bash
$
curl
--header
"Accept: application/json"
--header
"Authorization: Basic xxxx"
localhost:8080/variable
```
Ou en https :
```
bash
$
curl
--insecure
--header
"Accept: application/json"
--header
"Authorization: Basic xxxx"
https://localhost:8443/variable
```
...
...
@@ -154,7 +149,7 @@ $ echo -n 'sygal-app:motdepasse' | base64
L'interrogation directe de ces adresses va retourner l'intégralité des données du BDD.
Afin d'obtenir les informations spécifiques à une donnée, il est possible d'ajouter son identifiant, exemple :
```
bash
$
curl
--header
"Accept: application/json"
--header
"Authorization: Basic xxxx"
localhost:8
080
/variable/ETB_LIB_NOM_RESP
$
curl
--insecure
--header
"Accept: application/json"
--header
"Authorization: Basic xxxx"
https://
localhost:8
443
/variable/ETB_LIB_NOM_RESP
```
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment