21 lines
677 B
Plaintext
21 lines
677 B
Plaintext
from PDAPI import *
|
|
|
|
|
|
__metadata__ = {
|
|
"methods": ["GET"],
|
|
"blueprint": "GERP",
|
|
"permission": 4.0,
|
|
"attributes": [],
|
|
"limit": "1 per second",
|
|
}
|
|
def HandleRequest():
|
|
ELTUser: GERPUser = flask.g.ELTUser
|
|
return flask.jsonify({"code": 0, "data": [{
|
|
"ItemUUID": GetBytesTo16(i.ItemUUID),
|
|
"ItemName": i.ItemName,
|
|
"ItemIcon": i.ItemIcon,
|
|
"ItemIconColor": i.ItemIconColor,
|
|
"ItemTags": json.dumps(i.ItemTags, ensure_ascii = False),
|
|
"ItemDescription": i.ItemDescription,
|
|
"ItemMetaData": json.dumps(i.ItemMetaData, ensure_ascii = False)
|
|
} for i in GERPItemReference.query.all()]}) |