mardi 2 mars 2021

Does spring cloud contract supports callback response imitation?

I dont mean supporting async responses (like described here https://cloud.spring.io/spring-cloud-contract/reference/html/project-features.html#contract-dsl-async). I mean situation when after my request I get response synchronously. And after that I want to get some request back from stub. Smth like this:

  1. request from my service to stub:

POST /subscription {subscription params...}

  1. synchronous response from stub:

202 Accepted

  1. after a while request from stub to my service:

POST /subscription-answer {subscription with more params...}

Aucun commentaire:

Enregistrer un commentaire