Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Begin APID
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Jun 13, 2024
1 parent c5c234e commit 78bd6eb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Empty file added docs/API_DESIGN.md
Empty file.
52 changes: 52 additions & 0 deletions docs/rfc-0001/README.md
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

...

0 comments on commit 78bd6eb

Please sign in to comment.