-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: minor update to definitions, examples and enums (#72)
Signed-off-by: Amar Tumballi <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,362 additions
and
411 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,64 @@ | ||
publish: | ||
context: &context | ||
location: | ||
country: | ||
code: | ||
- code: IND | ||
description: Represents the country | ||
reference: <PR/Issue/Discussion Links md format text> | ||
action: | ||
- code: publish | ||
description: Provider app indicate the publish intent | ||
reference: <PR/Issue/Discussion Links md format text> | ||
message: &message | ||
rating: | ||
entityType: | ||
ratingType: | ||
- code: Overall | ||
description: Overall Experience | ||
reference: <PR/Issue/Discussion Links md format text | ||
reference: <PR/Issue/Discussion Links md format text> | ||
- code: Delivery | ||
description: Delivery Experience | ||
reference: <PR/Issue/Discussion Links md format text | ||
reference: <PR/Issue/Discussion Links md format text> | ||
|
||
revise: | ||
context: | ||
<<: *context | ||
action: | ||
- code: revise | ||
description: Provider app indicate the revise intent | ||
reference: <PR/Issue/Discussion Links md format text> | ||
message: *message | ||
|
||
query: | ||
context: | ||
<<: *context | ||
action: | ||
- code: query | ||
description: Provider app indicate the query intent | ||
reference: <PR/Issue/Discussion Links md format text> | ||
message: *message | ||
|
||
on_query: | ||
context: | ||
<<: *context | ||
action: | ||
- code: on_query | ||
description: Publisher app indicate the on_query intent | ||
reference: <PR/Issue/Discussion Links md format text> | ||
message: *message | ||
|
||
|
||
|
||
on_publish: | ||
context: | ||
<<: *context | ||
action: | ||
- code: on_publish | ||
description: Publisher app indicate the on_publish intent | ||
reference: <PR/Issue/Discussion Links md format text> | ||
|
||
on_revise: | ||
context: | ||
<<: *context | ||
action: | ||
- code: on_revise | ||
description: Publisher app indicate the on_revise intent | ||
reference: <PR/Issue/Discussion Links md format text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 18 additions & 20 deletions
38
docs/api/components/examples/score/on_publish/on_publish.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
{ | ||
"context": { | ||
"domain": "ONDC:NTS12", | ||
"action": "on_publish", | ||
"version": "1.0.0", | ||
"provider_id": "All in One - Market Place", | ||
"provider_uri": "string", | ||
"publisher_id": "bpp_id", | ||
"publisher_uri": "bpp_uri", | ||
"registry_id": "Confidex - Rating Provider Registry's ID", | ||
"transaction_id": "string", | ||
"message_id": "string", | ||
"timestamp": "2021-06-29T10:52:01.620Z", | ||
"ttl": "string", | ||
"location": {"code":"IND"} | ||
}, | ||
"message": { | ||
"status": true | ||
} | ||
} | ||
context: | ||
domain: "ONDC:NTS12" | ||
action: "on_publish" | ||
version: "1.0.0" | ||
provider_id: "All in One - Market Place" | ||
provider_uri: "https://api.example.com/api/rating/v1" | ||
publisher_id: "Rating Publisher on Ledger" | ||
publisher_uri: "https://api.publisher-example.com/api/rating/v1" | ||
registry_id: "Confidex - Rating Provider Registry's ID" | ||
transaction_id: "226c67bd-9aa7-4aef-8d62-c69e3a669ce0" | ||
message_id: "226c67bd-9aa7-4aef-8d62-c69e3a669c10" | ||
timestamp: "2021-06-29T10:52:01.620Z" | ||
ttl: "PT30S" | ||
location: | ||
country: | ||
code: "IND" | ||
message: | ||
status: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.