https://github.com/stereoflo/go-inventory-app
https://github.com/stereoflo/go-inventory-app
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stereoflo/go-inventory-app
- Owner: StereoFlo
- Created: 2023-02-06T15:54:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T17:43:52.000Z (over 3 years ago)
- Last Synced: 2025-02-25T09:46:31.817Z (over 1 year ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run the app
```shell
cp .env.dist .env && docker-compose up --build
```
### Available routes
`GET /locations`
creates a new location
`POST /locations`
`GET /locations/:location_id`
`GET /locations/:location_id/devices`
`GET /locations/:location_id/outlets`
creates a new device
`POST /devices`
`GET /devices/:device_id`
Creates a network outlet to which the device is connected
`POST /outlets`