Skip to content

Commit

Permalink
fix(core): missing open api and package lock files
Browse files Browse the repository at this point in the history
gh-0
  • Loading branch information
samarpan-b committed Sep 12, 2021
1 parent e831237 commit 3bd9686
Show file tree
Hide file tree
Showing 9 changed files with 5,383 additions and 12,024 deletions.
3 changes: 2 additions & 1 deletion packages/core/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"Pubnub Config missing !": "Pubnub Config missing !",
"Pubnub returned with error ! {\"name\"": "\"PubNubError\",\"status\":{\"message\":\"Missing Channel\",\"type\":\"validationError\",\"error\":true}}",
"AWS SES Config missing !": "AWS SES Config missing !",
"invalid input syntax for type uuid": " \"{\"to\":[{\"id\":\"14335492-38b6-2520-f1ab-b1b73aa5214c\",\"name\":\"Admin User\",\"type\":0}]}\""
"invalid input syntax for type uuid": " \"{\"to\":[{\"id\":\"14335492-38b6-2520-f1ab-b1b73aa5214c\",\"name\":\"Admin User\",\"type\":0}]}\"",
"EntityNotFound": "EntityNotFound"
}
111 changes: 103 additions & 8 deletions services/audit-service/openapi.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Audit Service v1.0.0
language_tabs:
- "'javascript": JavaScript
- "'javascript--nodejs": Node.JS'
- javascript: JavaScript
- javascript--nodejs: Node.JS
language_clients:
- "'javascript": request'
- "'javascript--nodejs": ""
- javascript: request
- javascript--nodejs: ""
toc_footers: []
includes: []
search: false
Expand Down Expand Up @@ -38,7 +38,28 @@ Base URLs:

> Code samples
```'javascript--nodejs
```javascript

const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};

fetch('/audit-logs/count',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

```

```javascript--nodejs
const fetch = require('node-fetch');
const headers = {
Expand Down Expand Up @@ -95,7 +116,28 @@ HTTPBearer

> Code samples
```'javascript--nodejs
```javascript

const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};

fetch('/audit-logs/{id}',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

```

```javascript--nodejs
const fetch = require('node-fetch');
const headers = {
Expand Down Expand Up @@ -162,7 +204,39 @@ HTTPBearer

> Code samples
```'javascript--nodejs
```javascript
const inputBody = '{
"action": "string",
"actedAt": "2019-08-24T14:15:22Z",
"actedOn": "string",
"actionKey": "string",
"entityId": "string",
"actor": "string",
"before": {},
"after": {},
"actionGroup": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};

fetch('/audit-logs',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

```

```javascript--nodejs
const fetch = require('node-fetch');
const inputBody = {
"action": "string",
Expand Down Expand Up @@ -255,7 +329,28 @@ HTTPBearer

> Code samples
```'javascript--nodejs
```javascript

const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};

fetch('/audit-logs',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

```

```javascript--nodejs
const fetch = require('node-fetch');
const headers = {
Expand Down
Loading

0 comments on commit 3bd9686

Please sign in to comment.