Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 821 Bytes

File metadata and controls

35 lines (25 loc) · 821 Bytes

About

This is an example of the simple Pyramid application

  • A classic CRUD service
  • Message fields type validation
Verb Endpoint Notes
GET metrics/ Returns all metrics
GET metrics/1 Returns a single metric
POST metrics/ Create a new metric in the collection
DELETE metrics/1 Delete an existing metric

Installation

python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
pip install -e ".[testing]"

Running

To start local server

pserve development.ini
curl -H "Content-Type: application/json" --request GET http://localhost:6543/metrics/