diff --git a/README.md b/README.md index 087b451..36f62db 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ -# api-test +# About lifen-postman + +This repository holds some PostMan files that performs tests against Lifen's Fhir API. They represent my handout regardinf the technical test. + +## Installation and execution + +PostMan is required to run them. + +1. Download the 3 jsons files +2. Create or select a Workspace that will get them +3. `File` > `Import...` and drag-and-drop them on the lightbox. + ![Import modale with some files ready to be imported](./public/import-screen-with-files.jpg) +4. Open the collection properties + ![a Collection Properties panel in PostMan](./public/lifen-api-collection-properties.jpg) +5. Run the files with the following settings + * Run the `POST a Json Web Token` is optional, the collection handle the JWT generation and use for each requests + * The servers don't like to be rushed, you will get better results by addind a **Delay** of **500**ms + * You can save the responses to diagnose them after run. + * The request `GET CommunicationRequest` wait 10 sec before being launched, because Irène may not have processed the CommunicationRequest that early. + * There is no need to save the cookies, as there will be no cookies backed here 😔🍪 + ![a runner in PostMan](./public/lifen-api-runner.jpg) + +## an Example of Test Report in PostMan + +![an Example of Test Report](./public/run-result-example.jpg) diff --git a/public/lifen-api-runner.jpg b/public/lifen-api-runner.jpg index d5949ca..6e1b5a6 100644 Binary files a/public/lifen-api-runner.jpg and b/public/lifen-api-runner.jpg differ diff --git a/public/run-result-example.jpg b/public/run-result-example.jpg new file mode 100644 index 0000000..35ba736 Binary files /dev/null and b/public/run-result-example.jpg differ