Skip to content

Commit

Permalink
Merge pull request #19 from co-cddo/hmrc-dataservice-example
Browse files Browse the repository at this point in the history
Add HMRC IRR API as an example data service description
  • Loading branch information
cyberdudeuk authored Aug 30, 2023
2 parents c845609 + 152a190 commit 0ba881c
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/data/DataService/valid/hmrc-irr-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Example DataService metadata record
# The example corresponds to the Interest Restriction Return (IRR) API provided by DWP
# Values taken from https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/interest-restriction-return/1.0 on 15 August 2023
---
identifier: interest-restriction-return
type: dcat:DataService
title: Interest Restriction Return (IRR) API
accessRights: INTERNAL
contactPoint:
contactName: Software Development Support Team (SDST)
email: [email protected]
address: https://developer.service.hmrc.gov.uk/developer/support
description: |-
## Overview
The API in its current state supports the following functions:
- Revoke an existing Reporting Company from submitting Interest Restriction Returns
- Appoint a new Reporting Company for submitting Interest Restriction Returns
- Submit an Interest Restriction Return (full)
- Submit an Interest Restriction Return (abbreviated)
This API uses User Restricted Endpoints. Please find further details on the [Authorisation](https://developer.service.hmrc.gov.uk/api-documentation/docs/authorisation) page.
For more information about how to develop your own client applications, including example clients for this API, see [Tutorials](https://developer.service.hmrc.gov.uk/api-documentation/docs/tutorials).
## Errors
We use standard HTTP status codes to show whether an API request succeeded or not. They are usually in the range:
- 200 to 299 if it succeeded, including code 202 if it was accepted by an API that needs to wait for further action
- 400 to 499 if it failed because of a client error by your application
- 500 to 599 if it failed because of an error on our server
Errors specific to each API are shown in the Endpoints section, under Response. See our [reference guide](https://developer.service.hmrc.gov.uk/api-documentation/docs/reference-guide#errors) for more on errors.
## Testing
You can use the [HMRC Developer Sandbox](https://developer.service.hmrc.gov.uk/api-documentation/docs/testing) to test the API. The Sandbox is an enhanced testing service that functions as a simulator of HMRC’s production environment.
## Versioning
When an API changes in a way that is backwards-incompatible, we increase the version number of the API. See our [reference guide](/api-documentation/docs/reference-guide#versioning) for more on versioning.
version: v1.0 (Beta)
securityClassification: OFFICIAL
creator:
- hm-revenue-customs
licence: https://www.apache.org/licenses/LICENSE-2.0
modified: "2023-08-03"
publisher: hm-revenue-customs
endpointDescription: https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/interest-restriction-return/1.0/oas/page
endpointURL: https://api.service.hmrc.gov.uk/
serviceStatus: BETA
serviceType: REST

0 comments on commit 0ba881c

Please sign in to comment.