This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5c234e
commit 78bd6eb
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# tbDEX API Design (APID) <!-- omit in toc --> | ||
|
||
**Last Updated:** June 13, 2024 | ||
|
||
**Custom DSL Version:** 0.1.0 | ||
|
||
- [Resources](#resources) | ||
- [`Resource`](#resource) | ||
- [`ResourceMetadata`](#resourcemetadata) | ||
- [Offering](#offering) | ||
- [`OfferingData`](#offeringdata) | ||
- [Messages](#messages) | ||
|
||
# Resources | ||
|
||
## `Resource` | ||
|
||
```pseudocode! | ||
INTERFACE Resource | ||
METHOD sign(bearer_did: BearerDid) | ||
METHOD verify(): bool | ||
``` | ||
|
||
## `ResourceMetadata` | ||
|
||
```pseudocode! | ||
CLASS ResourceMetadata | ||
PUBLIC DATA kind: string | ||
/// 🚧 more members | ||
``` | ||
|
||
## Offering | ||
|
||
```pseudocode! | ||
CLASS Offering IMPLEMENTS Resource | ||
CONSTRUCTOR(from: string, data: OfferingData, protocol: string) | ||
CONSTRUCTOR(json: string) | ||
METHOD sign(bearer_did: BearerDid) | ||
METHOD verify(): bool | ||
``` | ||
|
||
### `OfferingData` | ||
|
||
```pseudocode! | ||
CLASS OfferingData | ||
PUBLIC DATA description: string | ||
/// 🚧 more members | ||
``` | ||
|
||
# Messages | ||
|
||
... |