Skip to content

Commit 0ac0be2

Browse files
author
Adrian Clay
authored
Improve the API documentation (#1026)
Clarify that GP2GP_SERVER_PORT is for the API specifically. Fix broken link in the "Table of contents" to the API information. Link out to the editor.swagger.io interface which is a bit nicer for viewing the spec.
1 parent fece70a commit 0ac0be2

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

OPERATING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Variables without a default value and not marked optional, *MUST* be defined for
1313

1414
| Environment Variable | Default | Description |
1515
|--------------------------|---------------------------|-------------------------------------------------------------------------------------------|
16-
| GP2GP_SERVER_PORT | 8080 | The port on which the GP2GP Adapter will run. |
16+
| GP2GP_SERVER_PORT | 8080 | The port on which the GP2GP Adapter API will run. |
1717
| GP2GP_ROOT_LOGGING_LEVEL | WARN | The logging level applied to the entire application (including third-party dependencies). |
1818
| GP2GP_LOGGING_LEVEL | INFO | The logging level applied to GP2GP adaptor components. |
1919
| GP2GP_LOGGING_FORMAT | (*) | Defines how to format log events on stdout |

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,21 @@ GP2GP 2.2b producer, or those wishing to decommission their existing producer, m
1818

1919
1. [Guidance for setting up the GP2GP adaptors in INT](https://github.com/NHSDigital/nia-patient-switching-standard-adaptor/blob/main/getting-started-instructions.md)
2020
1. [Guidance for operating the adaptor as a New Market Entrant](OPERATING.md)
21-
1. [Guidance on integrating with the adaptors APIs](#how-to-query-the-ehr-status-api)
21+
1. [Guidance on integrating with the adaptors APIs](#adaptor-api)
2222
1. [Documentation on how this adaptor maps GPConnect concepts to GP2GP concepts](https://github.com/NHSDigital/patient-switching-adaptors-mapping-documentation)
2323

24-
## How to query the EHR Status API and the Requests endpoint
24+
## Adaptor API
2525

26-
An API is provided to query the status of any transfer to an incumbent.
26+
An API is provided to query the status of GP2GP transfers that have been processed, and initiate a resend of an
27+
Electronic Health Record which has failed to transfer.
2728

28-
The API has been documented using the OpenAPI Specification (version 3.0.1). The documentation includes detailed descriptions of endpoints,
29-
parameters, and data models, as well as examples of requests and responses to help developers integrate and use the API effectively
30-
[Ehr Extract OpenAPI Documentation](gp2gp_adaptor_response_docs.yaml)
29+
The API has been [documented using the OpenAPI Specification (version 3.0.1)](gp2gp_adaptor_response_docs.yaml) and
30+
includes detailed descriptions of endpoints, parameters, and data models, as well as examples of requests and responses
31+
to help developers integrate and use the API effectively.
32+
33+
The documentation can also be displayed using [editor.swagger.io (exteral link)][swagger_editor].
34+
35+
[swagger_editor]: https://editor.swagger.io/?url=https://raw.githubusercontent.com/NHSDigital/integration-adaptor-gp2gp-sending/refs/heads/main/gp2gp_adaptor_response_docs.yaml
3136

3237
## Diagrams
3338

0 commit comments

Comments
 (0)