REST API

Une interface REST pour le Téléservice APCv

Le module apcv-proxy, permet de fournit une facade REST à la facade ApCvClient java. Toutes les opérations offertes par la façade java sont disponibles via des appels http.

API dans Swagger

Exemples d’utilisation

authentifierUtilisateurProximite

curl -X 'POST' \
  'http://localhost:8080/apcv/authentifierUtilisateurProximite' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "requestContext": {
    "professionnelSante": {
      "specialite": "35"
    },
    "structure": {
      "identifiantFacturation": "123456789"
    }
  },
  "sourceMedia": "NFC"
}'

rest_apcv

La réponse du contexte ressemble à : avcv_response.json

restituerContexteApCV

curl -X 'POST' \
  'http://localhost:8080/apcv/restituerContexte' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "requestContext": {
    "professionnelSante": {
      "specialite": "35"
    },
    "structure": {
      "identifiantFacturation": "123456789"
    }
  }
}'

detruireContexteApCV

curl -X 'POST' \
  'http://localhost:8080/apcv/detruireContexte' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "requestContext": {
    "professionnelSante": {
      "specialite": "35"
    },
    "structure": {
      "identifiantFacturation": "123456789"
    }
  },
   "identifiant": "0474c48a-380a-424b-a038-c777a691f844"
}'