forked from lowskidev/pristine-typescript-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
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
bakon
committed
Jul 7, 2019
1 parent
e80ea90
commit b9f76b9
Showing
8 changed files
with
7,446 additions
and
291 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ build | |
docs | ||
.DS_Store | ||
dist | ||
__GENERATED_TYPES__ | ||
/**/build |
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,78 @@ | ||
{ | ||
"openrpc": "1.0.0", | ||
"info": { | ||
"title": "Simple RPC overview", | ||
"version": "2.0.0" | ||
}, | ||
"methods": [ | ||
{ | ||
"name": "createUser", | ||
"description": "Creates a new user in the system. Duplicates are not allowed, first user is admin", | ||
"params": [ | ||
{ | ||
"$ref": "#/components/contentDescriptors/userName" | ||
}, | ||
{ | ||
"$ref": "#/components/contentDescriptors/password" | ||
}, | ||
{ | ||
"$ref": "#/components/contentDescriptors/userRole" | ||
} | ||
], | ||
"result": { | ||
"name": "createAccountResult", | ||
"description": "Retures success", | ||
"schema": { | ||
"title": "responseStatus", | ||
"type": "object", | ||
"properties": { | ||
"status": { | ||
"type": "string", | ||
"description": "User create success" | ||
}, | ||
"message": { | ||
"type": "string", | ||
"description": "Returns info on new user." | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"code": 250, | ||
"data": [], | ||
"message": "User Exists" | ||
} | ||
] | ||
} | ||
], | ||
"components": { | ||
"contentDescriptors": { | ||
"userName": { | ||
"name": "userName", | ||
"description": "user name", | ||
"required": true, | ||
"schema": { | ||
"title": "userName", | ||
"type": "string" | ||
} | ||
}, | ||
"password": { | ||
"name": "password", | ||
"description": "user password", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
"userRole": { | ||
"name": "userRole", | ||
"description": "user role, first user is Admin by default", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.