From 62f07985e5bc0396861e22343f3c3ec68141b97c Mon Sep 17 00:00:00 2001 From: SchlenkR Date: Fri, 20 Dec 2024 10:50:57 +0100 Subject: [PATCH] Update HTTP request in Dsl.CE2.fsx to fetch PXL Clock details and modify JSON structure --- src/FsHttp/Dsl.CE2.fsx | 14 +++++++++++--- src/FsHttp/FsHttp.fsproj | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/FsHttp/Dsl.CE2.fsx b/src/FsHttp/Dsl.CE2.fsx index 20d70395..776a6445 100644 --- a/src/FsHttp/Dsl.CE2.fsx +++ b/src/FsHttp/Dsl.CE2.fsx @@ -75,14 +75,22 @@ module Body = -let res = http { - GET "http://www.pxl-clock.com" + POST "https://github.com/CuminAndPotato/PXL-JAM" + AcceptLanguage "en" Authorization "credOuter" if true then Authorization "credInner" body - json """ { name: "Hans" } """ + json """ + { + name: "PXL Clock", + description: "A Beautiful and Fun Clock", + programmingLanguage: [ + "F#", "C#", "JavaScript", "Python", "TypeScript" ] + } + """ } + diff --git a/src/FsHttp/FsHttp.fsproj b/src/FsHttp/FsHttp.fsproj index 45444e29..3c93f04d 100644 --- a/src/FsHttp/FsHttp.fsproj +++ b/src/FsHttp/FsHttp.fsproj @@ -26,6 +26,7 @@ +