API Key: wkvtE45Rg9tEm8rSD4uZt8m0DygNydJoDE8Q6vwq für das Team "Hey, Alter - Teststadt"
curl --location 'https://heyneuer.com/api/computers' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxx
curl --location 'https://heyneuer.com/api/computers/1' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxx'
curl --location 'https://heyneuer.com/api/computers/HA-E-0001' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxx'
curl --location 'https://heyneuer.com/api/computers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxx' \
--data-raw '{
"donor": "Max Mustermann",
"email": "max@mustermann.de",
"type": "4",
"model": "Dell...",
"memory_in_gb": 4,
"hard_drive_type": 2,
"hard_drive_space_in_gb": 250,
"has_vga_videoport": 0,
"has_dvi_videoport": 0,
"has_hdmi_videoport": 0,
"has_displayport_videoport": 0,
"cpu": "",
"has_webcam": 0,
"has_wlan": 0,
"required_equipment": "",
"is_deletion_required": 0,
"needs_donation_receipt": 0,
"state": "in_progress",
"comment": ""
}'
curl --location 'https://heyneuer.com/api/computers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxx' \
--data-raw '{
"number": 1
"donor": "Max Mustermann",
"email": "max@mustermann.de",
"type": "4",
"model": "Dell...",
"memory_in_gb": 4,
"hard_drive_type": 2,
"hard_drive_space_in_gb": 250,
"has_vga_videoport": 0,
"has_dvi_videoport": 0,
"has_hdmi_videoport": 0,
"has_displayport_videoport": 0,
"cpu": "",
"has_webcam": 0,
"has_wlan": 0,
"required_equipment": "",
"is_deletion_required": 0,
"needs_donation_receipt": 0,
"state": "in_progress",
"comment": ""
}'
curl --location --request PATCH 'https://heyneuer.com/api/computers/1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxx' \
--data-raw '{
"donor": "Max Mustermann",
"email": "max@mustermann.de",
"type": "2",
"model": "Dell...",
"memory_in_gb": 4,
"hard_drive_type": 2,
"hard_drive_space_in_gb": 250,
"has_vga_videoport": 0,
"has_dvi_videoport": 0,
"has_hdmi_videoport": 0,
"has_displayport_videoport": 0,
"cpu": "",
"has_webcam": 0,
"has_wlan": 0,
"required_equipment": "",
"is_deletion_required": 0,
"needs_donation_receipt": 0,
"state": "new",
"comment": "new"
}'
curl --location --request PATCH 'https://heyneuer.com/api/computers/HA-E-0001' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxx' \
--data-raw '{
"donor": "Max Mustermann!",
"email": "max@mustermann.de",
"type": "2",
"model": "Dell...",
"memory_in_gb": 4,
"hard_drive_type": 2,
"hard_drive_space_in_gb": 250,
"has_vga_videoport": 0,
"has_dvi_videoport": 0,
"has_hdmi_videoport": 0,
"has_displayport_videoport": 0,
"cpu": "",
"has_webcam": 0,
"has_wlan": 0,
"required_equipment": "",
"is_deletion_required": 0,
"needs_donation_receipt": 0,
"state": "new",
"comment": "new"
}'
curl --location --request DELETE 'https://heyneuer.com/api/computers/HA-E-0001' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxx' \
--data '{
"id": 1
}'
curl --location --request DELETE 'https://heyneuer.com/api/computers/HA-E-0001' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer xxx' \
1 (Desktop), 2 (Laptop), 3 (Tablett), 4 (Small Form Factor)
new, in_progress, refurbished, picked, delivered, destroyed, loss