
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
github.com/andregri/go-restful-sqlite-metrorailapi
api for pinging a server using go-restful
URL | REST Verb | Action | Resource |
---|---|---|---|
/ping | GET | Ping the server | |
/v1/train (details as JSON) | POST | Create | Train |
/v1/station (details as JSON) | POST | Create | Station |
/v1/train/id | GET | Read | Train |
/v1/station/id | GET | Read | Station |
/v1/schedule (source and destination as JSON) | POST | Create | Route |
curl -X GET http://localhost:8000/ping
2021-12-22 21:34:52.243239244 +0100 CET m=+14.830391099
POST request to create a new train
curl -X POST \
http://localhost:8000/v1/trains \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"driverName":"Menaka", "operatingStatus":true}'
{
"ID": 1,
"DriverName": "Menaka",
"OperatingStatus": true
}
GET request of the created train resource
curl -X GET http://localhost:8000/v1/trains/1
{
"ID": 1,
"DriverName": "Menaka",
"OperatingStatus": true
}
DELETE the train resource 1
curl -X DELETE http://localhost:8000/v1/trains/1
If you send a GET request again, the train resource 1 is not found:
curl -X GET http://localhost:8000/v1/trains/1
Train could not be found
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.