mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 04:24:44 +00:00
Generate clients (#206)
This commit is contained in:
14
examples/location/read/node/getLocationById.js
Executable file
14
examples/location/read/node/getLocationById.js
Executable file
@@ -0,0 +1,14 @@
|
||||
import * as location from "m3o/location";
|
||||
|
||||
// Read an entity by its ID
|
||||
async function GetLocationById() {
|
||||
let locationService = new location.LocationService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
let rsp = await locationService.read({
|
||||
id: "1",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GetLocationById();
|
||||
Reference in New Issue
Block a user