SpecScan service
SpecScan service for managing records of individual spec scans. Spec scan records follow a schema, defined here: schema.
APIs
- POST methods:
/addto add new scan records/searchto perform queries among existing scan records
- PUT methods:
/editto amend values of existing scan records
Example uses
- Add new records:
curl -X POST -H "Content-type: application/json" \ -H "Authorization: Bearer $token" \ -d@scanrecords.json \ http://localhost:8390/add - Search for records:
curl -X POST \ -H "Content-type: application/json" \ -H "Authorization: bearer $token" \ -d '{"service_query":{"query":"{}"}}' \ http://localhost:8390/search - Edit exiting records:
curl -X PUT \ -H "Content-type: application/json" \ -H "Authorization: bearer $token" \ -d '{"spec_file": "/path/to/spec_file", "scan_number": 1, "status": "Completed"}' \ http://localhost:8390/edit
FOXDEN