MongoDB shell cheat sheet https://www.slingacademy.com/article/mongodb-shell-commands-the-complete-cheat-sheet/#Advanced_Querying
These two curl requests do the same thing: curl -X GET "http://api.wsuv-hp-capstone.com/query?CollectionName=PrintJob&Query=%7B%22Title%22%3A%22PrintJob%201%22%7D"
curl -G -X GET http://api.wsuv-hp-capstone.com/query --data-urlencode "CollectionName=PrintJob" --data-urlencode "Query={"Title":"PrintJob 1"}"
Sample code used to send a request
const CollectionName = encodeURIComponent('PrintJob');
const Query = encodeURIComponent(JSON.stringify({Title: "PrintJob 1"}))
const response = await fastify.inject({
method: 'GET',
url:`/query?CollectionName=${CollectionName}&Query=${Query}`
});
curl -X POST http://api.wsuv-hp-capstone.com/createJob -H "Content-Type: application/json" -d '{"Title": "PrintJob 2", "PageCount": 9, "RasterizationProfile": ["RP 3"]}'
curl -X POST http://api.wsuv-hp-capstone.com/createWorkflow -H "Content-Type: application/json" -d '{"Title": "Workflow 2", "WorkflowSteps": []}'
curl -X POST http://api.wsuv-hp-capstone.com/createWorkflowStep -H "Content-Type: application/json" -d '{"Title": "Pizza", "PreviousStep": null, "NextStep": null, "SetupTime": 11, "TimePerPage": 3}'
curl -X POST http://api.wsuv-hp-capstone.com/createJob -H "Content-Type: application/json" -d '{"Title": "Pie", "PageCount": 9, "RaspberryProfile": ["RP 3"]}'