Skip to content

WSU-V students' capstone project for HP, 2025. Server-side/backend application.

Notifications You must be signed in to change notification settings

amychisholm03/hp-capstone-2025-backend

Repository files navigation

Resources
Database API sample curl requests
Sample GET request

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}`
});
Create a new PrintJob

curl -X POST http://api.wsuv-hp-capstone.com/createJob -H "Content-Type: application/json" -d '{"Title": "PrintJob 2", "PageCount": 9, "RasterizationProfile": ["RP 3"]}'

Create a new Workflow

curl -X POST http://api.wsuv-hp-capstone.com/createWorkflow -H "Content-Type: application/json" -d '{"Title": "Workflow 2", "WorkflowSteps": []}'

Create a new WorkflowStep

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}'

Invalid createJob example

curl -X POST http://api.wsuv-hp-capstone.com/createJob -H "Content-Type: application/json" -d '{"Title": "Pie", "PageCount": 9, "RaspberryProfile": ["RP 3"]}'

About

WSU-V students' capstone project for HP, 2025. Server-side/backend application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published