Skip to content

Commit

Permalink
complete requirements for pre-release r2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandopradocabrillo committed Dec 18, 2024
1 parent 88f3c51 commit 365260a
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 16 deletions.
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Changelog Tenure

## Table of Contents

- **[r2.1](#r21)**

**Please be aware that the project will have frequent updates to the main branch. There are no compatibility guarantees associated with code in any branch, including main, until it has been released. For example, changes may be reverted before a release is published. For the best results, use the latest published release.**

The below sections record the changes for each API version in each release as follows:

* for each first alpha or release-candidate API version, all changes since the release of the previous public API version
* for subsequent alpha or release-candidate API versions, the delta with respect to the previous pre-release
* for a public API version, the consolidated changes since the release of the previous public API version

# r2.1

## Release Notes

This release contains the definition and documentation of
* kyc-tenure v0.1.0-rc.1

The API definition(s) are based on
* Commonalities v0.5.0-alpha.1
* Identity and Consent Management v0.3.0-alpha.1

## kyc-tenure v0.1.0-rc.1

**kyc-tenure v0.1.0-rc.1 is the first release-candidate version for v0.1.0 of the Tenure API.**

- kyc-tenure v0.1.0-rc.1 API definition **with inline documentation**:
- [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/Tenure/r2.1/code/API_definitions/kyc-tenure.yaml&nocors)
- [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/Tenure/r2.1/code/API_definitions/kyc-tenure.yaml)
- OpenAPI [YAML spec file](https://github.com/camaraproject/Tenure/blob/r2.1/code/API_definitions/kyc-tenure.yaml)

**Main changes**

* Initial contribution of the API kyc-tenure

### Added

* Initial API proposal by @eric-murray in https://github.com/camaraproject/Tenure/pull/11
* Request body should be required by @eric-murray in https://github.com/camaraproject/Tenure/pull/15
* Change tenure date format from date-time to date by @eric-murray in https://github.com/camaraproject/Tenure/pull/17
* Update error response schema to align with Commonalities by @eric-murray in https://github.com/camaraproject/Tenure/pull/16

## New Contributors
* @eric-murray made their first contribution in https://github.com/camaraproject/Tenure/pull/6

**Full Changelog**: https://github.com/camaraproject/Tenure/commits/r2.1
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@ Repository to describe, develop, document, and test the Tenure API within the Kn
## Scope
* Service API(s) for “Tenure” (see [APIBacklog.md](https://github.com/camaraproject/APIBacklog/blob/main/documentation/APIbacklog.md))
* It provides the customer with the ability to:
* Establish a level of trust for a given network subcription identifier (e.g. phone number) by verifying the period of time (i.e. "tenure") for which the end user currently allocated that identifier has been associated with it by their current network operator.
* Establish a level of trust for a given network subscription identifier (e.g. phone number) by verifying the period of time (i.e. "tenure") for which the end user currently allocated that identifier has been associated with it by their current network operator.
* Describe, develop, document, and test the APIs
* Started: May 2024

## Release Information
<!-- Use/uncomment one or multiple the following options -->
The sub project has no (pre-)releases yet, work in progress is within the main branch.
<!-- Pre-releases of this sub project are available in https://github.com/camaraproject/Tenure/releases -->
<!-- The latest public release is available here: https://github.com/camaraproject/Tenure/releases/latest -->
<!-- For changes see [CHANGELOG.md](https://github.com/camaraproject/Tenure/blob/main/CHANGELOG.md) -->

* Note: Please be aware that the project will have updates to the main branch. There are no compatibility guarantees associated with code in any branch, including main, until a new release is created. For example, changes may be reverted before a release is created. For best results, use the latest available release
* **The latest pre-release of CAMARA Tenure is [r2.1](https://github.com/camaraproject/Tenure/tree/r2.1)**. The Release Tag is [r2.1](https://github.com/camaraproject/Tenure/releases/tag/r2.1).
* API definition **with inline documentation**:
* [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/Tenure/r2.1/code/API_definitions/kyc-tenure.yaml&nocors)
* [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/Tenure/r2.1/code/API_definitions/kyc-tenure.yaml)
* OpenAPI [YAML spec file](https://github.com/camaraproject/Tenure/blob/r2.1/code/API_definitions/kyc-tenure.yaml)
* Other releases of this sub project are available in https://github.com/camaraproject/Tenure/releases
* For changes see [CHANGELOG.md](https://github.com/camaraproject/Tenure/blob/main/CHANGELOG.md)

## Contributing
* Meetings and minutes see [KnowYourCustomer Meetings](https://github.com/camaraproject/KnowYourCustomer?tab=readme-ov-file#meetings)
* Mailing List
<!-- Note: the $api-family-mailinglist$ is not necessery the $repo-name$, if the repository is belonging to an API Family -->
* Subscribe / Unsubscribe to the mailing list of KnowYourCustomer <https://lists.camaraproject.org/g/sp-kyc>.
* A message to the community of this Sub Project can be sent using <[email protected]>.
* Subscribe / Unsubscribe to the mailing list of this Sub Project https://lists.camaraproject.org/g/sp-kyc
* A message to the community of this Sub Project can be sent using <https://lists.camaraproject.org/g/sp-kyc>
1 change: 0 additions & 1 deletion code/API_definitions/README.MD

This file was deleted.

18 changes: 13 additions & 5 deletions code/API_definitions/kyc-tenure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,19 @@ info:
- If the subject can be identified from the access token and the optional `phoneNumber` field is also included in the request, then the server will return an error with the `422 UNNECESSARY_IDENTIFIER` error code. This will be the case even if the same phone number is identified by these two methods, as the server is unable to make this comparison.
# Authorization and authentication
The "Camara Security and Interoperability Profile" provides details of how an API consumer requests an access token. Please refer to Identity and Consent Management (https://github.com/camaraproject/IdentityAndConsentManagement/) for the released version of the profile.
The specific authorization flows to be used will be agreed upon during the onboarding process, happening between the provider of the application consuming the API and the operator's API exposure platform, taking into account the declared purpose for accessing the API, whilst also being subject to the prevailing legal framework dictated by local legislation.
In cases where personal data is processed by the API and users can exercise their rights through mechanisms such as opt-in and/or opt-out, the use of three-legged access tokens is mandatory. This ensures that the API remains in compliance with privacy regulations, upholding the principles of transparency and user-centric privacy-by-design.
# Further info and support
(FAQs will be added in a later version of the documentation)
version: wip
version: 0.1.0-rc.1
contact:
email: [email protected]
license:
Expand All @@ -88,7 +96,7 @@ externalDocs:
url: https://github.com/camaraproject/Tenure

servers:
- url: "{apiRoot}/kyc-tenure/vwip"
- url: "{apiRoot}/kyc-tenure/v0.1-rc1"
variables:
apiRoot:
default: https://localhost:443
Expand Down Expand Up @@ -496,9 +504,9 @@ components:
contractType:
description: |
If exists, populated with:
- `PAYG` prepaid (pay-as-you-go) account
- `PAYM` contract account
- `Business` Business (enterprise) account
- `PAYG` - prepaid (pay-as-you-go) account
- `PAYM` - contract account
- `Business` - Business (enterprise) account
This attribute may be omitted from the response set where value is not known on the local MNO system.
example: "PAYM"
type: string
Expand Down
1 change: 0 additions & 1 deletion documentation/API_documentation/README.MD

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# API Readiness Checklist

Checklist for kyc-tenure v0.1.0-rc.1 in r2.1.

| Nr | API release assets | alpha | release-candidate | initial<br>public | stable<br> public | Status | Reference information |
|----|----------------------------------------------|:-----:|:-----------------:|:-------:|:------:|:----:|:----:|
| 1 | API definition | M | M | M | M | Y | [relative link](/code/API_definitions/kyc-tenure.yaml) |
| 2 | Design guidelines from Commonalities applied | O | M | M | M | Y | [r2.1](https://github.com/camaraproject/Commonalities/releases/tag/r2.1) |
| 3 | Guidelines from ICM applied | O | M | M | M | Y | [r2.1](https://github.com/camaraproject/IdentityAndConsentManagement/releases/tag/r2.1) |
| 4 | API versioning convention applied | M | M | M | M | Y | |
| 5 | API documentation | M | M | M | M | Y | Embedded documentation into API spec [relative link](/code/API_definitions/kyc-tenure.yaml) |
| 6 | User stories | O | O | O | M | tbd | |
| 7 | Basic API test cases & documentation | O | M | M | M | tbd | |
| 8 | Enhanced API test cases & documentation | O | O | O | M | tbd | |
| 9 | Test result statement | O | O | O | M | N | |
| 10 | API release numbering convention applied | M | M | M | M | Y | |
| 11 | Change log updated | M | M | M | M | Y | [relative link](/CHANGELOG.md) |
| 12 | Previous public release was certified | O | O | O | M | N | |

0 comments on commit 365260a

Please sign in to comment.