Skip to content

Commit fad1fb8

Browse files
authored
Merge pull request #39 from spdci/Changes_1
update on notify endpoint
2 parents c52d332 + 0a20c98 commit fad1fb8

30 files changed

+1815
-303
lines changed

release/html/crvs_api_v1.0.0.html

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

release/html/dr_api_v1.0.0.html

Lines changed: 21 additions & 5 deletions
Large diffs are not rendered by default.

release/html/fr_api_v1.0.0.html

Lines changed: 37 additions & 11 deletions
Large diffs are not rendered by default.

release/html/ibr_api_v1.0.0.html

Lines changed: 110 additions & 8 deletions
Large diffs are not rendered by default.

release/html/registry_core_api_v1.0.0.html

Lines changed: 110 additions & 8 deletions
Large diffs are not rendered by default.

release/html/social_api_v1.0.0.html

Lines changed: 110 additions & 8 deletions
Large diffs are not rendered by default.

release/yaml/crvs_api_v1.0.0.yaml

Lines changed: 193 additions & 69 deletions
Large diffs are not rendered by default.

release/yaml/dr_api_v1.0.0.yaml

Lines changed: 65 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,57 @@ paths:
348348
security:
349349
- Authorization: []
350350
deprecated: false
351+
/registry/notify:
352+
post:
353+
summary: /registry/notify
354+
description: Registry to notify a life event to subscrbiers
355+
operationId: post_reg_notify
356+
tags:
357+
- Async
358+
requestBody:
359+
description: ''
360+
required: true
361+
content:
362+
application/json:
363+
schema:
364+
type: object
365+
properties:
366+
signature:
367+
$ref: '#/components/schemas/MsgSignature'
368+
header:
369+
allOf:
370+
- $ref: '#/components/schemas/MsgCallbackHeader_V1.0.0'
371+
- properties:
372+
action:
373+
enum:
374+
- notify
375+
message:
376+
type: object
377+
oneOf:
378+
- $ref: '#/components/schemas/NotifyEventRequest'
379+
- $ref: '#/components/schemas/EncryptedMessage'
380+
required:
381+
- header
382+
multipart/form-data:
383+
schema:
384+
allOf:
385+
- $ref: '#/components/schemas/FileInfo'
386+
- properties:
387+
action:
388+
enum:
389+
- notify
390+
responses:
391+
'401':
392+
$ref: '#/components/responses/HttpErrorResponse'
393+
'403':
394+
$ref: '#/components/responses/HttpErrorResponse'
395+
'500':
396+
$ref: '#/components/responses/HttpErrorResponse'
397+
default:
398+
$ref: '#/components/responses/Response'
399+
security:
400+
- Authorization: []
401+
deprecated: false
351402
/registry/unsubscribe:
352403
post:
353404
summary: /registry/unsubscribe
@@ -843,87 +894,11 @@ components:
843894
type: string
844895
default: 1.0.0
845896
reg_type:
846-
$ref: '#/components/schemas/SubscriptionInfo/properties/reg_type'
897+
$ref: '#/components/schemas/SearchResponse/properties/search_response/items/properties/data/properties/reg_type'
847898
reg_record_type:
848-
type: string
849-
description: |
850-
@context: https://schema.spdci.org/common/v1/api-schemas/RegistryRecordType.jsonld <br>
851-
@type: "RegistryRecordType" <br>
852-
853-
**Notes:**
854-
1. Registry record type values defined as per implementation context.
855-
2. Usually a list of **enum** values of all possible queryable result sets
856-
3. Referenced in search_request and notify events
857-
4. example: "spdci-extensions-dci:Person"
858-
example: 'spdci-extensions-dci:Person'
899+
$ref: '#/components/schemas/SearchResponse/properties/search_response/items/properties/data/properties/reg_record_type'
859900
reg_records:
860-
type: object
861-
description: |
862-
The "person" object contains fields expected in response of search
863-
@context: https://schema.spdci.org/core/v1/data/Member.jsonld <br>
864-
@type: "Person" <br>
865-
@container: "@set" <br>
866-
example:
867-
type: object
868-
description: |
869-
1. Attributes of a person to create fetch records, create verifiable credentials or use in search criteria.
870-
3. Allows Country/Registry specific implementation extensions using Attribute Name/Value pairs.
871-
872-
@context: https://schema.spdci.org/core/v1/data/Member.jsonld <br>
873-
@type: "@context" <br>
874-
example:
875-
'@context':
876-
spdci: 'https://schema.spdci.org/core/v1/data'
877-
rdfs: 'http://www.w3.org/2000/01/rdf-schema#'
878-
xsd: 'http://www.w3.org/2001/XMLSchema#'
879-
owl: 'http://www.w3.org/2002/07/owl#'
880-
common: 'https://schema.spdci.org/common/v1/'
881-
'@id': 'https://example.org/sr_person/847951632'
882-
'@type': 'spdci:member'
883-
member_identifier:
884-
- '@type': Identifier
885-
identifier_type: UIN
886-
identifier_value: '42343545654'
887-
demographic_info:
888-
'@type': SRPerson
889-
identifier:
890-
- '@type': Identifier
891-
identifier_type: NationalID
892-
identifier_value: '9876543210'
893-
name:
894-
'@type': Name
895-
surname: Smith
896-
given_name: Alice
897-
prefix: Ms.
898-
suffix: ''
899-
sex: female
900-
birth_date: '1985-05-20'
901-
related_person:
902-
- '@type': RelatedPerson
903-
relationship_type: spouse
904-
related_member:
905-
'@type': Member
906-
'@id': 'https://example.org/member/123456789'
907-
member_identifier: M123456789
908-
- '@type': RelatedPerson
909-
relationship_type: child
910-
related_member:
911-
'@type': Member
912-
'@id': 'https://example.org/member/987654322'
913-
'spdci:member_identifier': M987654322
914-
is_disabled: false
915-
marital_status: married
916-
employment_status: employed
917-
occupation: teacher
918-
income_level: middle
919-
language_code:
920-
- en
921-
- es
922-
education_level: bachelor
923-
additional_attributes:
924-
- extra_work: volunteer
925-
registration_date: '2022-01-10T08:00:00Z'
926-
last_updated: '2023-06-15T10:00:00Z'
901+
$ref: '#/components/schemas/SearchResponse/properties/search_response/items/properties/data/properties/reg_records'
927902
required:
928903
- reg_record_type
929904
- reg_records
@@ -1470,11 +1445,21 @@ components:
14701445
- $ref: '#/components/schemas/RegistryQueries/oneOf/1'
14711446
- $ref: '#/components/schemas/RegistryQueries/oneOf/2'
14721447
notify_record_type:
1473-
$ref: '#/components/schemas/NotifyEventRequest/properties/notify_event/items/properties/data/properties/reg_record_type'
14741448
required:
14751449
- reg_event_type
14761450
- filter
14771451
- notify_record_type
1452+
type: string
1453+
description: |
1454+
@context: https://schema.spdci.org/common/v1/api-schemas/RegistryRecordType.jsonld <br>
1455+
@type: "RegistryRecordType" <br>
1456+
1457+
**Notes:**
1458+
1. Registry record type values defined as per implementation context.
1459+
2. Usually a list of **enum** values of all possible queryable result sets
1460+
3. Referenced in search_request and notify events
1461+
4. example: "spdci-extensions-dci:Person"
1462+
example: 'spdci-extensions-dci:Person'
14781463
locale:
14791464
type: string
14801465
description: indicates language code. SPDCI Connect supports country codes as per ISO 639.3 standard

0 commit comments

Comments
 (0)