Skip to content

Commit 0bd0b02

Browse files
Merge pull request #201 from fernandopradocabrillo/prepare-r1.4
Prepare maintenance release r1.4
2 parents 24d46df + 9175137 commit 0bd0b02

File tree

5 files changed

+66
-49
lines changed

5 files changed

+66
-49
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Table of contents
44

5+
- **[r1.4](#r14)**
56
- **[r1.3](#r13)**
67
- **[r1.2](#r12)**
78
- **[r1.1](#r11)**
@@ -15,6 +16,47 @@ The below sections record the changes for each API version in each release as fo
1516
* for subsequent alpha or release-candidate API versions, the delta with respect to the previous pre-release
1617
* for a public API version, the consolidated changes since the release of the previous public API version
1718

19+
# r1.4
20+
21+
## Release Notes
22+
23+
This release contains the definition and documentation of
24+
* sim-swap 1.0.0
25+
* sim-swap-subscriptions 0.1.2
26+
27+
The API definition(s) are based on
28+
* Commonalities v0.4.0
29+
* Identity and Consent Management v0.2.0
30+
31+
## sim-swap 1.0.0
32+
33+
**sim-swap 1.0.0 is the public release for v1.0.0 of the Sim Swap API.**
34+
35+
- API definition **with inline documentation**:
36+
- [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap.yaml&nocors)
37+
- [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap.yaml)
38+
- OpenAPI [YAML spec file](https://github.com/camaraproject/SimSwap/blob/r1.4/code/API_definitions/sim-swap.yaml)
39+
40+
**Main Changes**
41+
* SIM Swap API remains untouched in this release as only SIM Swap Subscriptions has been updated
42+
43+
## Sim Swap Subscriptions v0.1.2
44+
45+
**sim-swap-subscriptions 0.1.2 is the public release for v0.1.2 of the Sim Swap Subscriptions API.**
46+
47+
- API definition **with inline documentation**:
48+
- OpenAPI [YAML spec file](https://github.com/camaraproject/SimSwap/blob/r1.4/code/API_definitions/sim-swap-subscriptions.yaml)
49+
- [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap-subscriptions.yaml&nocors)
50+
- [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap-subscriptions.yaml)
51+
52+
**Main Changes**
53+
* Include `HTTP error 403 INVALID_TOKEN_CONTEXT` in the subscription POST creation endpoint and also add the missing `SUBSCRIPTION_DELETED` terminationReason.
54+
55+
### Added
56+
* Include 403 INVALID_TOKEN_CONTEXT and SUBSCRIPTION_DELETED terminationReason by @fernandopradocabrillo in https://github.com/camaraproject/SimSwap/pull/200
57+
58+
**Full Changelog**: https://github.com/camaraproject/SimSwap/compare/r1.3...r1.4
59+
1860
# r1.3
1961

2062
## Release Notes

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,30 @@
88

99
# SimSwap
1010

11-
Repository to describe, develop, document and test the SimSwap API family
11+
Repository to describe, develop, document and test the SimSwap APIs
1212

1313
## Scope
1414

1515
* Service APIs for “SimSwap” (see APIBacklog.md)
16-
* It provides the customer with the ability to:
16+
* It provides the API Consumer with the ability to:
1717
* obtain information on any recent SIM pairing change related to the User’s mobile account.
1818
* Describe, develop, document and test the APIs (with 1-2 Telcos)
1919
* Started: October 2022
20-
* Location: virtually
2120

2221
## Status and released versions
2322

2423
* Note: 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 a new release is created. For example, changes may be reverted before a release is created. **For best results, use the latest available release**.
25-
* `NEW`: Release r1.3 features following APIs:
26-
* version 1.0.0 of the **API sim-swap** - available [here](https://github.com/camaraproject/SimSwap/tree/r1.3)
24+
* `NEW`: Release r1.4 features following APIs:
25+
* version 1.0.0 of the **API sim-swap** - available [here](https://github.com/camaraproject/SimSwap/tree/r1.4)
2726
* API definitions **with inline documentation**:
28-
* OpenAPI [YAML](https://github.com/camaraproject/SimSwap/blob/r1.3/code/API_definitions/sim-swap.yaml)
29-
* [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.3/code/API_definitions/sim-swap.yaml&nocors)
30-
* [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.3/code/API_definitions/sim-swap.yaml)
31-
* version 0.1.1 of the **API sim-swap-subscriptions** - available [here](https://github.com/camaraproject/SimSwap/tree/r1.3)
27+
* OpenAPI [YAML](https://github.com/camaraproject/SimSwap/blob/r1.4/code/API_definitions/sim-swap.yaml)
28+
* [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap.yaml&nocors)
29+
* [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap.yaml)
30+
* version 0.1.2 of the **API sim-swap-subscriptions** - available [here](https://github.com/camaraproject/SimSwap/tree/r1.4)
3231
* API definitions **with inline documentation**:
33-
* OpenAPI [YAML](https://github.com/camaraproject/SimSwap/blob/r1.3/code/API_definitions/sim-swap-subscriptions.yaml)
34-
* [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.3/code/API_definitions/sim-swap-subscriptions.yaml&nocors)
35-
* [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.3/code/API_definitions/sim-swap-subscriptions.yaml)
32+
* OpenAPI [YAML](https://github.com/camaraproject/SimSwap/blob/r1.4/code/API_definitions/sim-swap-subscriptions.yaml)
33+
* [View it on ReDoc](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap-subscriptions.yaml&nocors)
34+
* [View it on Swagger Editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/camaraproject/SimSwap/r1.4/code/API_definitions/sim-swap-subscriptions.yaml)
3635

3736
* The latest public release is available here: https://github.com/camaraproject/SimSwap/releases/latest
3837
* Other releases of this sub project are available in https://github.com/camaraproject/SimSwap/releases

code/API_definitions/sim-swap-subscriptions.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ info:
6262
license:
6363
name: Apache 2.0
6464
url: https://www.apache.org/licenses/LICENSE-2.0.html
65-
version: wip
65+
version: 0.1.2
6666
x-camara-commonalities: 0.4.0
6767

6868
externalDocs:
6969
description: Product documentation at CAMARA
7070
url: https://github.com/camaraproject/
7171
servers:
72-
- url: '{apiRoot}/sim-swap-subscriptions/vwip'
72+
- url: '{apiRoot}/sim-swap-subscriptions/v0.1'
7373

7474
variables:
7575
apiRoot:
@@ -958,11 +958,17 @@ components:
958958
schema:
959959
$ref: "#/components/schemas/ErrorInfo"
960960
examples:
961-
PermissionDenied:
961+
GENERIC_403_PERMISSION_DENIED:
962962
value:
963963
status: 403
964964
code: "PERMISSION_DENIED"
965965
message: "Client does not have sufficient permissions to perform this action"
966+
GENERIC_403_INVALID_TOKEN_CONTEXT:
967+
description: Reflect some inconsistency between information in some field of the API and the related OAuth2 Token
968+
value:
969+
status: 403
970+
code: INVALID_TOKEN_CONTEXT
971+
message: "config.subscriptionDetail.phoneNumber is not consistent with access token."
966972
TokenMismatch:
967973
value:
968974
status: 403
@@ -984,12 +990,6 @@ components:
984990
status: 403
985991
code: PERMISSION_DENIED
986992
message: Client does not have sufficient permissions to perform this action.
987-
GENERIC_403_INVALID_TOKEN_CONTEXT:
988-
description: Reflect some inconsistency between information in some field of the API and the related OAuth2 Token
989-
value:
990-
status: 403
991-
code: INVALID_TOKEN_CONTEXT
992-
message: "config.subscriptionDetail.phoneNumber is not consistent with access token."
993993
Generic404:
994994
description: Resource Not Found
995995
headers:

code/Test_definitions/sim-swap-subscriptions.feature

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Feature: CAMARA sim swap subscriptions API, v0.1.1
1+
Feature: CAMARA sim swap subscriptions API, v0.1.2
22
# Input to be provided by the implementation to the tester
33
#
44
# Testing assets:
55
# * A mobile line identified by its phone number "phoneNumber" associated with a sim card 1
66
# * Be able to perform a sim swap for this mobile line shifting from sim card 1 to sim card 2
77
# * a callback url identified as "callbackUrl" allows to receive notification
88
#
9-
# References to OAS spec schemas refer to schemas specifies in sim-swap-subscriptions.yaml, version v0.1.1
9+
# References to OAS spec schemas refer to schemas specifies in sim-swap-subscriptions.yaml, version v0.1.2
1010

1111
Background: Common subscriptions setup
1212
Given the resource "/sim-swap-subscriptions/v0.1/subscriptions" as BaseURL |
@@ -317,30 +317,6 @@ Feature: CAMARA sim swap subscriptions API, v0.1.1
317317
And the response property "$.code" is "INVALID_TOKEN_CONTEXT"
318318
And the response property "$.message" contains a user friendly text
319319

320-
321-
@sim_swap_subscription_retrieve_61_phone_number_token_mismatch
322-
Scenario: Inconsistent access token context for the phone number
323-
# To test this, a token have to be obtained for a different phone number
324-
Given an existing subscription for a phone number
325-
And the header "Authorization" is set to a valid access token emitted for a different phone number
326-
And use BaseUrL
327-
When the HTTP "GET" request is sent
328-
Then the response property "$.status" is 403
329-
And the response property "$.code" is "INVALID_TOKEN_CONTEXT"
330-
And the response property "$.message" contains a user friendly text
331-
332-
333-
@sim_swap_subscription_delete_62_device_token_mismatch
334-
Scenario: Inconsistent access token context for the device
335-
# To test this, a token have to be obtained for a different device
336-
Given an existing subscription for a phone number
337-
And the header "Authorization" is set to a valid access token emitted for a different phone number
338-
And use BaseUrL
339-
When the HTTP "DELETE" request is sent
340-
Then the response property "$.status" is 403
341-
And the response property "$.code" is "INVALID_TOKEN_CONTEXT"
342-
And the response property "$.message" contains a user friendly text
343-
344320
##################
345321
# Error Code 404
346322
##################

documentation/API_documentation/sim-swap-subscriptions-API-Readiness-Checklist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# API Readiness Checklist
22

3-
Checklist for sim-swap-subscriptions 0.1.1 in r1.3
3+
Checklist for sim-swap-subscriptions 0.1.2 in r1.4
44

55
| Nr | API release assets | alpha | release-candidate | initial<br>public | stable<br> public | Status | Comments |
66
|----|----------------------------------------------|:-----:|:-----------------:|:-------:|:------:|:----:|------|
77
| 1 | API definition | M | M | M | M | Y | [link](code/API_definitions/sim-swap-subscriptions.yaml) |
88
| 2 | Design guidelines from Commonalities applied | O | M | M | M | Y | |
99
| 3 | Guidelines from ICM applied | O | M | M | M | Y | |
1010
| 4 | API versioning convention applied | M | M | M | M | Y | |
11-
| 5 | API documentation | M | M | M | M | Y | Embedded documentation into API spec - [link](/code/API_definitions/sim-swap.yaml) |
11+
| 5 | API documentation | M | M | M | M | Y | Embedded documentation into API spec - [link](/code/API_definitions/sim-swap-subscriptions.yaml) |
1212
| 6 | User stories | O | O | O | M | N | |
1313
| 7 | Basic API test cases & documentation | O | M | M | M | Y | [link](/code/Test_definitions/sim-swap-subscriptions.feature) |
1414
| 8 | Enhanced API test cases & documentation | O | O | O | M | N | |

0 commit comments

Comments
 (0)