Rename content to record on endpoints
This commit is contained in:
committed by
Denis Arh
parent
57c97c63a0
commit
37eb4ceccd
@@ -658,7 +658,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/report",
|
||||
"name": "record/report",
|
||||
"method": "GET",
|
||||
"title": "Generates report from module records",
|
||||
"path": "/{moduleID}/report",
|
||||
@@ -688,10 +688,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/list",
|
||||
"name": "record/list",
|
||||
"method": "GET",
|
||||
"title": "List/read contents from module section",
|
||||
"path": "/{moduleID}/content",
|
||||
"title": "List/read records from module section",
|
||||
"path": "/{moduleID}/record",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -730,10 +730,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/create",
|
||||
"name": "record/create",
|
||||
"method": "POST",
|
||||
"title": "List/read contents from module section",
|
||||
"path": "/{moduleID}/content",
|
||||
"title": "Create record in module section",
|
||||
"path": "/{moduleID}/record",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -748,16 +748,16 @@
|
||||
"type": "sqlxTypes.JSONText",
|
||||
"name": "fields",
|
||||
"required": true,
|
||||
"title": "Content JSON"
|
||||
"title": "Record JSON"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/read",
|
||||
"name": "record/read",
|
||||
"method": "GET",
|
||||
"title": "Read contents by ID from module section",
|
||||
"path": "/{moduleID}/content/{contentID}",
|
||||
"title": "Read records by ID from module section",
|
||||
"path": "/{moduleID}/record/{recordID}",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -768,18 +768,18 @@
|
||||
},
|
||||
{
|
||||
"type": "uint64",
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID"
|
||||
"title": "Record ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/edit",
|
||||
"name": "record/edit",
|
||||
"method": "POST",
|
||||
"title": "Add/update contents in module section",
|
||||
"path": "/{moduleID}/content/{contentID}",
|
||||
"title": "Add/update records in module section",
|
||||
"path": "/{moduleID}/record/{recordID}",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -790,9 +790,9 @@
|
||||
},
|
||||
{
|
||||
"type": "uint64",
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID"
|
||||
"title": "Record ID"
|
||||
}
|
||||
],
|
||||
"post": [
|
||||
@@ -800,16 +800,16 @@
|
||||
"type": "sqlxTypes.JSONText",
|
||||
"name": "fields",
|
||||
"required": true,
|
||||
"title": "Content JSON"
|
||||
"title": "Record JSON"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "content/delete",
|
||||
"name": "record/delete",
|
||||
"method": "DELETE",
|
||||
"title": "Delete content row from module section",
|
||||
"path": "/{moduleID}/content/{contentID}",
|
||||
"title": "Delete record row from module section",
|
||||
"path": "/{moduleID}/record/{recordID}",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -820,9 +820,9 @@
|
||||
},
|
||||
{
|
||||
"type": "uint64",
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID"
|
||||
"title": "Record ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/report",
|
||||
"Name": "record/report",
|
||||
"Method": "GET",
|
||||
"Title": "Generates report from module records",
|
||||
"Path": "/{moduleID}/report",
|
||||
@@ -147,10 +147,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/list",
|
||||
"Name": "record/list",
|
||||
"Method": "GET",
|
||||
"Title": "List/read contents from module section",
|
||||
"Path": "/{moduleID}/content",
|
||||
"Title": "List/read records from module section",
|
||||
"Path": "/{moduleID}/record",
|
||||
"Parameters": {
|
||||
"get": [
|
||||
{
|
||||
@@ -189,10 +189,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/create",
|
||||
"Name": "record/create",
|
||||
"Method": "POST",
|
||||
"Title": "List/read contents from module section",
|
||||
"Path": "/{moduleID}/content",
|
||||
"Title": "Create record in module section",
|
||||
"Path": "/{moduleID}/record",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -206,17 +206,17 @@
|
||||
{
|
||||
"name": "fields",
|
||||
"required": true,
|
||||
"title": "Content JSON",
|
||||
"title": "Record JSON",
|
||||
"type": "sqlxTypes.JSONText"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/read",
|
||||
"Name": "record/read",
|
||||
"Method": "GET",
|
||||
"Title": "Read contents by ID from module section",
|
||||
"Path": "/{moduleID}/content/{contentID}",
|
||||
"Title": "Read records by ID from module section",
|
||||
"Path": "/{moduleID}/record/{recordID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -226,19 +226,19 @@
|
||||
"type": "uint64"
|
||||
},
|
||||
{
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID",
|
||||
"title": "Record ID",
|
||||
"type": "uint64"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/edit",
|
||||
"Name": "record/edit",
|
||||
"Method": "POST",
|
||||
"Title": "Add/update contents in module section",
|
||||
"Path": "/{moduleID}/content/{contentID}",
|
||||
"Title": "Add/update records in module section",
|
||||
"Path": "/{moduleID}/record/{recordID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -248,9 +248,9 @@
|
||||
"type": "uint64"
|
||||
},
|
||||
{
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID",
|
||||
"title": "Record ID",
|
||||
"type": "uint64"
|
||||
}
|
||||
],
|
||||
@@ -258,17 +258,17 @@
|
||||
{
|
||||
"name": "fields",
|
||||
"required": true,
|
||||
"title": "Content JSON",
|
||||
"title": "Record JSON",
|
||||
"type": "sqlxTypes.JSONText"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "content/delete",
|
||||
"Name": "record/delete",
|
||||
"Method": "DELETE",
|
||||
"Title": "Delete content row from module section",
|
||||
"Path": "/{moduleID}/content/{contentID}",
|
||||
"Title": "Delete record row from module section",
|
||||
"Path": "/{moduleID}/record/{recordID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
@@ -278,9 +278,9 @@
|
||||
"type": "uint64"
|
||||
},
|
||||
{
|
||||
"name": "contentID",
|
||||
"name": "recordID",
|
||||
"required": true,
|
||||
"title": "Content ID",
|
||||
"title": "Record ID",
|
||||
"type": "uint64"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user