Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add endpoints #2

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 130 additions & 1 deletion libs/features/gsrs/gsrs-api/src/assets/gsrs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,136 @@
}
}
}
},
},
"/substances/@databaseIndexDiff": {
"get": {
"tags": ["rebackup and reindex"],
"summary": "Get the difference between database and indexes",
"description": "Returns the ids that exist only in database or in indexes, and the counts.",
"parameters": [
],
"responses": {
"200": {
"description": "Successful response"
},
"401": {
"description": "Could not find the process"
}
}
}
},
"/substances/@databaseIndexSync": {
"put": {
"tags": ["rebackup and reindex"],
"summary": "Reindex substances records that are in database, but not in indexes",
"description": "Returns the id this async job.",
"parameters": [
],
"responses": {
"200": {
"description": "Successful response"
},
"401": {
"description": "Could not find the process"
}
}
}
},
"/substances/@databaseIndexSync({id})": {
"get": {
"tags": ["rebackup and reindex"],
"summary": "Get the reindex job status.",
"description": "Returns the reindex job status.",
"parameters": [
],
"responses": {
"200": {
"description": "Successful response"
},
"404": {
"description": "Could not find the job identified by id"
}
}
}
},
"/substances/({id})/@rebackup": {
"get": {
"tags": ["rebackup and reindex"],
"summary": "Rebackup the record specified by id.",
"description": "Returns the record rebacked.",
"parameters": [
],
"responses": {
"200": {
"description": "Successful response"
},
"404": {
"description": "Could not find the record identified by id"
}
}
}
},
"/substances/@rebackup": {
"put": {
"tags": ["rebackup and reindex"],
"summary": "Rebackup the records specified by the list of ids.",
"description": " ",
"parameters": [
{
"type":"array",
"items":{
"type":"string"
},
"in": "body",
"required": "true"
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
},
"/substances/({id})/@rebackupAndReindex": {
"get": {
"tags": ["rebackup and reindex"],
"summary": "Rebackup and reindex the record specified by id.",
"description": "Returns the record rebacked and reindexed.",
"parameters": [
],
"responses": {
"200": {
"description": "Successful response"
},
"404": {
"description": "Could not find the record identified by id"
}
}
}
},
"/substances/@rebackupAndReindex": {
"put": {
"tags": ["rebackup and reindex"],
"summary": "Rebackup the records specified by the list of ids.",
"description": " ",
"parameters": [
{
"type":"array",
"items":{
"type":"string"
},
"in": "body",
"required": "true"
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
},
"/scheduledjobs": {
"get": {
"tags": [
Expand Down