Coursing
API Key and Store id that can be used in staging environment.
Store_id: 5c5981496bcf7500013afeb0
API Key: rna4etAXd11XRqbMTcNnWca216daxiFE
Getting the courses of a store.
URL:https://api.lingaros.com/v1/lingapos/store/{store-id}/courses
curl -X GET -H "apikey: generated-api-key" \
"https://api.lingaros.com/v1/lingapos/store/{store-id}/courses"
queryParms
?page=1 => [paging no]
?search= => [null]
?status=true => [active courses list]
?status=false => [inactive courses list]
Creating a new coursing.
Method | Type | Description |
---|---|---|
priority | Int | Coursing priority. |
name | String | Coursing name. |
store | bson.ObjectId | Id of the store for which the coursing is created. |
createdAt | Int | Which store created the coursing. |
createdFor | bson.String | Store id for which the coursing is created. |
ownedBy | bson.String | Account id related to the Store by whom the coursing is created. |
curl -X POST \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"priority":1,
"name":"SOUPS",
"store":"5c5981496bcf7500013afeb0",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2"}' \
"https://api.lingaros.com/v1/lingapos/course" \
Updating a coursing.
URL:http://api.lingaros.com/v1/lingapos/course/{coursing-id}
Method | Type | Description |
---|---|---|
id | bson.ObjectId | Coursing id. |
originalID | bson.ObjectId | Original coursing id. |
name | String | Name of the coursing. |
createdAt | Int | Which store created the coursing. |
createdFor | bson.String | Store id for which the coursing is created. |
ownedBy | bson.String | Account id related to the Store by whom the coursing is created. |
createdBy | bson.String | Unique user Id by whom the coursing is created. |
dateCreated | time.Time | Date when the coursing is created. |
modifiedBy | bson.String | Unique user Id by whom the coursing is modified. |
lastUpdated | time.Time | Date when the coursing is updated. |
activeStatus | Bool | Coursing activity status. |
priority | Int | Coursing priority. |
curl -X PUT \
-H "apikey: generated-api-key" \
-H "Content-Type: application/json" \
-d '{"id":"5e1db87fad2eb30001116024",
"originalID":"5e1db87fad2eb30001116024",
"name":"SOUPS1",
"createdAt":2,
"createdFor":"5c5981496bcf7500013afeb0",
"ownedBy":"5c5981496bcf7500013afeb2",
"createdBy":"5c5981496bcf7500013afeb1",
"dateCreated":"2020-01-14T12:47:59.488Z",
"modifiedBy":"5c5981496bcf7500013afeb1",
"lastUpdated":"2020-01-14T12:47:59.488Z",
"activeStatus":true,
"priority":1}' \
"https://api.lingaros.com/v1/lingapos/course/{coursing-id}" \