Skip to content

Commit c4ea73c

Browse files
robbearNathan Daly
andauthored
Unify RAICloud APIs with Rel Database APIs in JavaScript SDK (#4529)
Co-authored-by: Nathan Daly <44379820+rai-nhdaly@users.noreply.github.com>
1 parent ecad0f0 commit c4ea73c

112 files changed

Lines changed: 11334 additions & 14007 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

client/docs/DefaultApi-Rel.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# RaiDbSdk.DefaultApi
2+
3+
All URIs are relative to *http://127.0.0.1:8010*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**transactionPost**](DefaultApi.md#transactionPost) | **POST** /transaction | Issues a transaction to be executed
8+
9+
10+
11+
## transactionPost
12+
13+
> TransactionResult transactionPost(transaction)
14+
15+
Issues a transaction to be executed
16+
17+
### Example
18+
19+
```javascript
20+
import RaiDbSdk from 'rai_db_sdk';
21+
22+
let apiInstance = new RaiDbSdk.DefaultApi();
23+
let transaction = new RaiDbSdk.Transaction(); // Transaction | Optional description in *Markdown*
24+
apiInstance.transactionPost(transaction, (error, data, response) => {
25+
if (error) {
26+
console.error(error);
27+
} else {
28+
console.log('API called successfully. Returned data: ' + data);
29+
}
30+
});
31+
```
32+
33+
### Parameters
34+
35+
36+
Name | Type | Description | Notes
37+
------------- | ------------- | ------------- | -------------
38+
**transaction** | [**Transaction**](Transaction.md)| Optional description in *Markdown* |
39+
40+
### Return type
41+
42+
[**TransactionResult**](TransactionResult.md)
43+
44+
### Authorization
45+
46+
No authorization required
47+
48+
### HTTP request headers
49+
50+
- **Content-Type**: application/json
51+
- **Accept**: application/json
52+

0 commit comments

Comments
 (0)