Skip to content

Commit

Permalink
MODINVOICE-16 Project setup
Browse files Browse the repository at this point in the history
- project setup using mod-rmb-template
  • Loading branch information
pautau-s committed Feb 21, 2019
1 parent b2e40b7 commit 0d8a599
Show file tree
Hide file tree
Showing 12 changed files with 628 additions and 430 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# http://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
7 changes: 1 addition & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[submodule "ramls/raml-util"]
path = ramls/raml-util
url = https://github.com/folio-org/raml.git
url = https://github.com/folio-org/raml
branch = raml1.0
[submodule "ramls/acq-models"]
path = ramls/acq-models
url = https://github.com/folio-org/acq-models.git
branch = master

2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## 1.0.0
* Incremental Release Notes here.
85 changes: 78 additions & 7 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,97 @@
{
"id": "${artifactId}-${version}",
"name": "Invoice business logic module",
"requires": [],
"provides": [
{
"id": "invoice",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/invoice",
"permissionsRequired": ["invoice.collection.get"]
},
{
"methods": ["POST"],
"pathPattern": "/invoice",
"permissionsRequired": ["invoice.item.post"]
},
{
"methods": ["GET"],
"pathPattern": "/invoice/{id}",
"permissionsRequired": ["invoice.item.get"]
},
{
"methods": ["PUT"],
"pathPattern": "/invoice/{id}",
"permissionsRequired": ["invoice.item.put"]
},
{
"methods": ["DELETE"],
"pathPattern": "/invoice/{id}",
"permissionsRequired": ["invoice.item.delete"]
}
]
},
{
"id": "_tenant",
"version": "1.0",
"interfaceType": "system",
"handlers": [
{
"methods": [ "POST", "DELETE" ],
"methods": [
"POST"
],
"pathPattern": "/_/tenant"
},
{
"methods": [
"DELETE"
],
"pathPattern": "/_/tenant"
}
]
}
],
"permissionSets" : [
"permissionSets": [
{
"permissionName" : "invoice.module.all",
"displayName" : "All invoice-module perms",
"description" : "All permissions for the mod-invoice module",
"subPermissions" : [
]
"permissionName": "invoice.collection.get",
"displayName": "Invoice - get invoice collection",
"description": "Get invoice collection"
},
{
"permissionName": "invoice.item.get",
"displayName": "Invoice - get individual invoice",
"description": "Get individual pet"
},
{
"permissionName": "invoice.item.post",
"displayName": "Invoice - create invoice",
"description": "Create invoice"
},
{
"permissionName": "invoice.item.put",
"displayName": "Invoice - modify invoice",
"description": "Modify invoice"
},
{
"permissionName": "invoice.item.delete",
"displayName": "Invoice - delete invoice",
"description": "Delete invoice"
},
{
"permissionName": "invoice.all",
"displayName": "Invoice module - all permissions",
"description": "Entire set of permissions needed to use the invoice module",
"subPermissions": [
"invoice.collection.get",
"invoice.item.get",
"invoice.item.post",
"invoice.item.put",
"invoice.item.delete"
],
"visible": false
}
],
"launchDescriptor": {
Expand Down
Loading

0 comments on commit 0d8a599

Please sign in to comment.