Skip to content

Commit

Permalink
refactor: Device Service refactor (#1263)
Browse files Browse the repository at this point in the history
* refactor: Device Service refactor - Phase 1

Signed-off-by: melody <melody@iotechsys.com>
  • Loading branch information
jumpingliu authored Nov 1, 2023
1 parent 92ca15b commit 6cf65c5
Show file tree
Hide file tree
Showing 52 changed files with 927 additions and 436 deletions.
2 changes: 1 addition & 1 deletion docs_src/api/devices/Ch-APIDeviceSDK.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Device Services

The EdgeX Foundry Device Service Software Development Kit (SDK) takes the Developer through the step-by-step process to create an EdgeX Foundry Device Service microservice. See [Device Service SDK](../../microservices/device/sdk/Ch-DeviceSDK.md) for more details on this SDK.
The EdgeX Foundry Device Service Software Development Kit (SDK) takes the Developer through the step-by-step process to create an EdgeX Foundry Device Service microservice. See [Device Service SDK](../../microservices/device/sdk/Purpose.md) for more details on this SDK.

The Device Service SDK provides a RESTful API that all Device Services inherit from the SDK.

Expand Down
2 changes: 1 addition & 1 deletion docs_src/general/ServiceConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Please refer to the general [Common Configuration documentation](../microservice
=== "Device"
|Service Name| Configuration Reference|
|---|---|
|device-service |[General Device Service Configuration](../microservices/device/Ch-DeviceServices.md#configuration-properties)|
|device-service |[General Device Service Configuration](../microservices/device/Configuration.md)|
|device-virtual |[Virtual Device Service Configuration](../microservices/device/services/device-virtual/Ch-VirtualDevice.md#configuration-properties)|
=== "Security"
|Service Name| Configuration Reference|
Expand Down
2 changes: 1 addition & 1 deletion docs_src/getting-started/Ch-GettingStartedCDevelopers.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ apk add iotech-iot-1.5-dev
Note: If not using Alpine 3.16, replace v3.16 in the above commands with the correct version.

## Next Steps
To explore how to create and build EdgeX device services in C, head to the [Device Services, C SDK guide](Ch-GettingStartedSDK-C.md).
To explore how to create and build EdgeX device services in C, head to the [Device Services, C SDK guide](../microservices/device/sdk/devicesdk-getting-started/GettingStartedSDK-C.md).
2 changes: 1 addition & 1 deletion docs_src/getting-started/Ch-GettingStartedGoDevelopers.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ See [EdgeX Default Service Ports](../../general/ServicePorts) for a list of the
Application services and some device services are also built in Go. To explore how to create and build EdgeX application and devices services in Go, head to SDK documentation covering these EdgeX elements.

- [Application Services and the Application Functions SDK](../microservices/application/sdk/GettingStarted.md)
- [Device Services in Go](./Ch-GettingStartedSDK-Go.md)
- [Device Services in Go](../microservices/device/sdk/devicesdk-getting-started/GettingStartedSDK-Go.md)

## EdgeX Foundry in GoLand

Expand Down
27 changes: 0 additions & 27 deletions docs_src/getting-started/Ch-GettingStartedSDK.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs_src/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ may also want to obtain the Device Service Software Development Kit (DS
SDK) and create new device services. The DS SDK creates all the
scaffolding code for a new EdgeX Foundry device service; allowing you to
focus on the details of interfacing with the device in its native
protocol. See [Getting Started with Device SDK](./Ch-GettingStartedSDK.md)
protocol. See [Getting Started with Device SDK](../microservices/device/sdk/Purpose.md)
for help on using the DS SDK to create a new device service. Learn more
about Device Services and the Device Service SDK at
[Device Services](../microservices/device/Ch-DeviceServices.md).
[Device Services](../microservices/device/DeviceService.md).

## Application Service Developer

Expand Down
2 changes: 1 addition & 1 deletion docs_src/getting-started/tools/Ch-GUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The GUI allows you to
### Dashboard
The Dashboard page (the main page of the GUI) presents you with a set of clickable "tiles" that provide a quick view of the status of your EdgeX instance. That is, it provides some quick data points about the EdgeX instance and what the GUI is tracking. Specifically, the tiles in the Dashboard show you:

- the number of [device services](../../microservices/device/Ch-DeviceServices.md) that it is aware of and their status (locked vs unlocked)
- the number of [device services](../../microservices/device/DeviceService.md) that it is aware of and their status (locked vs unlocked)
- the number of devices being managed by EdgeX (through the associated device services)
- the number of [device profiles](../../microservices/core/metadata/details/DeviceProfile.md) registered with core metadata
- the number of [schedules](../../microservices/support/scheduler/Purpose.md) (or intervals) EdgeX is managing
Expand Down
9 changes: 9 additions & 0 deletions docs_src/microservices/device/ApiReference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Device Service - API Reference
---

# Device Service - API Reference

The following REST APIs are provided by the Device Services SDK and are inherited by all Device Services.

<swagger-ui src="https://github.com/raw/edgexfoundry/device-sdk-go/{{edgexversion}}/openapi/{{api_version}}/device-sdk.yaml"/>
Loading

0 comments on commit 6cf65c5

Please sign in to comment.