https://github.com/kaungmyathan22/golang-metro-train-project
https://github.com/kaungmyathan22/golang-metro-train-project
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kaungmyathan22/golang-metro-train-project
- Owner: kaungmyathan22
- Created: 2024-03-11T17:24:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-11T17:41:40.000Z (about 1 year ago)
- Last Synced: 2024-12-30T00:27:33.241Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang trains station project
### Trains
#### Create Train
curl -X POST \
http://localhost:8000/v1/trains \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"driverName": "Menaka", "operatingStatus": true}'
#### Get train by id
CURL -X GET "http://localhost:8000/v1/trains/1"
#### Delete train
CURL -X DELETE "http://localhost:8000/v1/trains/1"