clean notification with last folder change
This commit is contained in:
@@ -10,7 +10,7 @@ const isAuthenticated = require("../middlewares/isAuthenticated.js");
|
||||
const router = express.Router();
|
||||
|
||||
/**
|
||||
* @api {get} adminapi/odmdb/schemas - objects Get
|
||||
* @api {get} /adminapi/odmdb/schemas - objects Get
|
||||
* @apiGroup Odmdb
|
||||
* @apiName getIndex
|
||||
* @apiDescription Get objects available result is store in data.apx.conf for schema conf of adminapi schema (pagans,towns,... ) and data.apx.objectnames as array of schema name. Schema related to tribe are store in data.tribe.conf and data.tribe.objectnames where tribe come from header.xtribe
|
||||
@@ -47,7 +47,7 @@ router.get("/schemas", checkHeaders, isAuthenticated, (req, res) => {
|
||||
res.status(200).json({ status: 200, ref: "Odmdb", msg: "objectslist", data });
|
||||
});
|
||||
/**
|
||||
* @api {get} adminapi/odmdb/schema/:source/:objectname - Schema Get in the language header
|
||||
* @api {get} /adminapi/odmdb/schema/:source/:objectname - Schema Get in the language header
|
||||
* @apiGroup Odmdb
|
||||
* @apiName getIndex
|
||||
* @apiDescription Get schema in the requested language if login have accessright
|
||||
@@ -74,7 +74,7 @@ router.get("/schema/:source/:objectname", checkHeaders, isAuthenticated, (req, r
|
||||
});
|
||||
|
||||
/**
|
||||
* @api {get} adminapi/odmdb/idx/:tribe/:objectname/:indexname - index Get
|
||||
* @api {get} /adminapi/odmdb/idx/:tribe/:objectname/:indexname - index Get
|
||||
* @apiGroup Odmdb
|
||||
* @apiName getIndex
|
||||
* @apiDescription Get index file for an object
|
||||
@@ -129,7 +129,7 @@ router.get(
|
||||
);
|
||||
|
||||
/**
|
||||
* @api {get} adminapi/odmdb/rebuildidx/:objectname - index refresh all
|
||||
* @api {get} /adminapi/odmdb/rebuildidx/:objectname - index refresh all
|
||||
* @apiGroup Odmdb
|
||||
* @apiName refreshAllIndex
|
||||
* @apiDescription Rebuild all index for an object, this can be usefull in case crash or any data conflict.
|
||||
@@ -199,7 +199,7 @@ router.get(
|
||||
);
|
||||
|
||||
/**
|
||||
* @api {post} adminapi/odmdb/itm/:objectname - item Create
|
||||
* @api {post} /adminapi/odmdb/itm/:objectname - item Create
|
||||
* @apiGroup Odmdb
|
||||
* @apiName postItm
|
||||
* @apiPermission none
|
||||
@@ -258,7 +258,7 @@ router.get(
|
||||
);
|
||||
|
||||
/**
|
||||
* @api {get} adminapi/odmdb/itm/:objectname/:primaryindex - item Get
|
||||
* @api {get} /adminapi/odmdb/itm/:objectname/:primaryindex - item Get
|
||||
* @apiGroup Odmdb
|
||||
* @apiName getItemFromId
|
||||
* @apiDescription Get itm for a primaryid of an object
|
||||
|
@@ -92,7 +92,8 @@ router.get("/isauth", checkHeaders, isAuthenticated, (req, res) => {
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// @a pi Body {object} schema:pagans <a href='/nationchains/schema/pagans.json' target='_blank'>/nationchains/schema/pagans.json</a>
|
||||
|
||||
/**
|
||||
* @api {post} adminapi/pagans - pagan Post
|
||||
* @apiName addpagan
|
||||
@@ -111,7 +112,6 @@ router.get("/isauth", checkHeaders, isAuthenticated, (req, res) => {
|
||||
* @apiBody {string} [privatekey]
|
||||
* @apiBody {string} [passphrase] if not specidied => passphrase=""
|
||||
* @apiBody {string} [trustedtribe] the tribename if not specified then the process will only create a pagan identity, else an item person is create for trustedtribe (that must exist with profil 'person'). To create a person with an existing pagan identity use put /api/person/:alias after authenticated you (headers). In case a person is created then we use all valid other apiBody respecting the persons schema (see put persons)
|
||||
* @apiBody {object} schema:pagans <a href='/nationchains/schema/pagans.json' target='_blank'>/nationchains/schema/pagans.json</a>
|
||||
*
|
||||
* @apiError {json} objectNotfound the file does not exist
|
||||
* @apiErrorExample {json}
|
||||
|
Reference in New Issue
Block a user