Skip to content

Commit

Permalink
fix: update example API request URLs to use dynamic ID placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Feb 14, 2025
1 parent d621df5 commit 994f329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions APIReference/views/main/model.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@

<div class="[&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0 xl:sticky xl:top-24">
<%- include('../partials/code', {title: "Example Item Request" , requestUrl:
pageData.apiPath+"/3599ee69-43a7-42d7/get-item", code: pageData.itemRequest, requestType: "POST" })
pageData.apiPath+"/:id/get-item", code: pageData.itemRequest, requestType: "POST" })
-%>
<%- include('../partials/code', {title: "Example Item Response" , code: pageData.itemResponse,
requestType: "" }) -%>
Expand Down Expand Up @@ -473,7 +473,7 @@

<div class="[&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0 xl:sticky xl:top-24">
<%- include('../partials/code', {title: "Example Update Request" , requestUrl:
pageData.apiPath+"/3599ee69-43a7-42d7", code: pageData.updateRequest, requestType: "PUT" }) -%>
pageData.apiPath+"/:id", code: pageData.updateRequest, requestType: "PUT" }) -%>
<%- include('../partials/code', {title: "Example Update Response" , code: pageData.updateResponse,
requestType: "" }) -%>
</div>
Expand Down Expand Up @@ -502,7 +502,7 @@

<div class="[&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0 xl:sticky xl:top-24">
<%- include('../partials/code', {title: "Example Delete Request" , requestUrl:
pageData.apiPath+"/3599ee69-43a7-42d7", code: pageData.deleteRequest, requestType: "DELETE" }) -%>
pageData.apiPath+"/:id", code: pageData.deleteRequest, requestType: "DELETE" }) -%>
<%- include('../partials/code', {title: "Example Delete Response" , code: pageData.deleteResponse,
requestType: "" }) -%>
</div>
Expand Down

0 comments on commit 994f329

Please sign in to comment.