0% found this document useful (0 votes)
108 views7 pages

Main Js Endpoints

This document contains code snippets that reference various API endpoints for user authentication, products, orders, and other functions. It includes HTTP requests to GET, POST, PUT, DELETE from endpoints related to users, products, orders, addresses and more. The code handles authentication, retrieving and modifying data via these different RESTful API endpoints.

Uploaded by

pip3lee101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views7 pages

Main Js Endpoints

This document contains code snippets that reference various API endpoints for user authentication, products, orders, and other functions. It includes HTTP requests to GET, POST, PUT, DELETE from endpoints related to users, products, orders, addresses and more. The code handles authentication, retrieving and modifying data via these different RESTful API endpoints.

Uploaded by

pip3lee101
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

(this.host = this.

hostServer + "/rest/admin");
.get(this.host + "/application-configuration")
"https://ponzico.win/ponzico.pdf",
"https://www.sec.gov/investor/alerts/ia_virtualcurrencies.pdf",
["src", "assets/public/images/padding/56px.png"],
(this.host = this.hostServer + "/api/Users");
.get(this.hostServer + "/rest/user/authentication-details/", {
return this.http.get(`${this.host}/${e}`).pipe(
return this.http.post(this.host + "/", e).pipe(
this.http.post(this.hostServer + "/rest/user/login", e).pipe(
"/rest/user/change-password?current=" +
.post(this.hostServer + "/rest/user/reset-password", e)
return this.http.get(this.hostServer + "/rest/user/whoami").pipe(
"https://www.googleapis.com/oauth2/v1/userinfo?
alt=json&access_token=" +
return this.http.get(this.hostServer + "/rest/saveLoginIp").pipe(
.get(this.hostServer + "/rest/deluxe-membership")
.post(this.hostServer + "/rest/deluxe-membership", {
return yield e.router.navigate(["/login"]);
return yield n.router.navigate(["/"]);
return yield n.router.navigate(["/login"]);
(this.host = this.hostServer + "/api/BasketItems");
return this.http.get(`${this.hostServer}/rest/basket/${e}`).pipe(
return this.http.get(`${this.host}/${e}`).pipe(
return this.http.put(`${this.host}/${e}`, n).pipe(
return this.http.delete(`${this.host}/${e}`).pipe(
return this.http.post(this.host + "/", e).pipe(
.post(`${this.hostServer}/rest/basket/${e}/checkout`, {
.put(`${this.hostServer}/rest/basket/${e}/coupon/${n}`, {})
t.Q6J("src", "assets/public/images/products/" + e.image, t.LSH);
n + Math.round(i.price / 10) * i.BasketItem.quantity,
return yield e.router.navigate(["/address/select"]);
(this.host = this.hostServer + "/rest/track-order");
this.http.get(`${this.host}/${e}`).pipe(
`<code>${e.data[0].orderId}</code>`
(this.host = this.hostServer + "/api/Feedbacks");
return this.http.get(this.host + "/", { params: e }).pipe(
return this.http.post(this.host + "/", e).pipe(
return this.http.delete(`${this.host}/${e}`).pipe(
(this.host = this.hostServer + "/rest/captcha");
return this.http.get(this.host + "/").pipe(
"/160"
"assets/public/images/carousel/1.jpg",
"assets/public/images/carousel/2.jpg",
"assets/public/images/carousel/3.jpg",
"assets/public/images/carousel/4.jpg",
"assets/public/images/carousel/5.png",
"assets/public/images/carousel/6.jpg",
"assets/public/images/carousel/7.jpg",
'<i class="fas fa-star"></i><i class="far fa-star"></i><i
class="far fa-star"></i><i class="far fa-star"></i><i class="far fa-star"></i>',
'<i class="fas fa-star"></i><i class="fas fa-star"></i><i
class="far fa-star"></i><i class="far fa-star"></i><i class="far fa-star"></i>',
'<i class="fas fa-star"></i><i class="fas fa-star"></i><i
class="fas fa-star"></i><i class="far fa-star"></i><i class="far fa-star"></i>',
'<i class="fas fa-star"></i><i class="fas fa-star"></i><i
class="fas fa-star"></i><i class="fas fa-star"></i><i class="far fa-star"></i>',
'<i class="fas fa-star"></i><i class="fas fa-star"></i><i
class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i>',
}<br/> (${this.stars[e[n].rating]})</span>`),
"ftp/legal.md",
(this.host = this.hostServer + "/api/SecurityAnswers");
return this.http.post(this.host + "/", e).pipe(
(this.host = this.hostServer + "/api/SecurityQuestions");
return this.http.get(this.host + "/", { params: e }).pipe(
this.hostServer + "/rest/user/security-question?email=" + e
return yield e.router.navigate(["/login"]);
["routerLink", "/login", "translate", "", 1, "primary-link"],
"/20"
"/40"
"/20"
"/20"
(this.host = this.hostServer + "/rest/products");
return this.http.get(`${this.host}/${e}/reviews`).pipe(
return this.http.put(`${this.host}/${e}/reviews`, n).pipe(
return this.http.patch(this.host + "/reviews", e).pipe(
return this.http.post(this.host + "/reviews", { id: e }).pipe(
"/160"
this.data.productData.price / 10
"assets/public/images/products/" +
"/160"
(this.host = this.hostServer + "/api/Products");
.get(`${this.hostServer}/rest/products/search?q=${e}`)
return this.http.get(this.host + "/", { params: e }).pipe(
`${this.host}/${e}?d=${encodeURIComponent(
return this.http.put(`${this.host}/${e}`, n).pipe(
(window.location.pathname.endsWith("/")
: window.location.pathname + "/") + "socket.io",
(this.host = this.hostServer + "/api/Quantitys");
return this.http.get(this.host + "/").pipe(
return this.http.put(`${this.host}/${e}`, n).pipe(
t.Q6J("src", "assets/public/images/products/" + e.image, t.LSH),
f <= Math.ceil(this.dataSource.data.length / 12);
.match(/hacking-instructor/) &&
"assets/public/images/products/no-results.png",
'.table-container[_ngcontent-%COMP%]{min-
width:350px;width:80%}.heading[_ngcontent-%COMP%]{background:rgba(0,0,0,.2);font-
size:x-large;justify-content:center;padding:12px 20px}.img-thumbnail[_ngcontent-
%COMP%]{width:100%}.product[_ngcontent-%COMP%]{cursor:pointer}.btn-
basket[_ngcontent-%COMP%]{bottom:10%}mat-card[_ngcontent-%COMP%]{height:calc(100% -
70px)}.item-price[_ngcontent-%COMP%]{font-size:medium;font-size:initial;margin-
top:12px;text-align:center}.item-name[_ngcontent-%COMP%]{font-size:large;text-
align:center}.emptyState[_ngcontent-%COMP%]{display:block;height:auto!
important;margin:20px auto;width:50%}.noResult[_ngcontent-%COMP%]
{display:block;margin-left:auto;margin-
right:auto;width:60%}.noResultText[_ngcontent-%COMP%]{display:block;margin-
top:10px;text-align:center}.ribbon-card[_ngcontent-%COMP%]
{position:relative}.ribbon[_ngcontent-%COMP%]{height:150px;overflow:hidden;pointer-
events:none;position:absolute;width:150px}.ribbon[_ngcontent-%COMP
%]:before{content:"";display:block;position:absolute;z-index:-1}.ribbon[_ngcontent-
%COMP%] span[_ngcontent-%COMP%]{box-shadow:0 5px 10px
#0000001a;color:#fff;display:block;font:700 18px/1 Lato,sans-serif;padding:15px
0;position:absolute;text-align:center;text-shadow:0 1px 1px
rgba(0,0,0,.2);width:225px}.ribbon-top-left[_ngcontent-%COMP%]{left:-10px;top:-
10px}.ribbon-top-left[_ngcontent-%COMP%]:before{border-left-
color:transparent;border-top-color:transparent;right:0;top:0}.ribbon-top-
left[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{right:-
25px;top:30px;transform:rotate(-45deg)}',
(this.redirectUri = `$
{this.windowRefService.nativeWindow.location.protocol}//$
{this.windowRefService.nativeWindow.location.host}`),
return yield e.router.navigate(["/search"]);
return yield e.router.navigate(["/2fa/enter"]);
`https://accounts.google.com/o/oauth2/v2/auth?client_id=$
{this.clientId}&response_type=token&scope=email&redirect_uri=${this.redirectUri}`
"/forgot-password",
["routerLink", "/register", "translate", "", 1, "primary-link"],
}</span>`
["src", "assets/public/images/padding/19px.png"],
: e.match(/support@.*/)) &&
/(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]
{12,30}/
"/40"
"/20"
(this.host = this.hostServer + "/api/Complaints");
return this.http.post(this.host + "/", e).pipe(
url: "./file-upload",
"application/pdf",
"application/xml",
"text/xml",
"application/zip",
"application/x-zip-compressed",
"multipart/x-zip",
"/160"
(this.host = this.hostServer + "/rest/chatbot");
return this.http.get(this.host + "/status").pipe(
.post(this.host + "/respond", { action: e, query: n })
(this.juicyImageSrc = "assets/public/images/ChatbotAvatar.png"),
"assets/public/images/uploads/default.svg"),
(this.host = this.hostServer + "/api/Recycles");
return this.http.get(this.host + "/", { params: e }).pipe(
return this.http.post(this.host + "/", e).pipe(
(this.host = this.hostServer + "/api/Addresss");
return this.http.get(`${this.host}/${e}`).pipe(
return this.http.post(this.host + "/", e).pipe(
return this.http.put(`${this.host}/${e}`, n).pipe(
return this.http.delete(`${this.host}/${e}`).pipe(
t.xp6(1), t.MGl("routerLink", "/address/edit/", e.id, "");
return yield e.router.navigate(["/delivery-method"]);
"/address/create",
((this.topImage = `assets/public/images/products/$
{e.application.recyclePage.topProductImage}`),
(this.bottomImage = `assets/public/images/products/$
{e.application.recyclePage.bottomProductImage}`));
(this.host = this.hostServer + "/api/Challenges");
return this.http.get(this.host + "/", { params: e }).pipe(
.get(this.hostServer + "/rest/repeat-notification", {
.get(this.hostServer + "/rest/continue-code")
.get(this.hostServer + "/rest/continue-code-findIt")
.get(this.hostServer + "/rest/continue-code-fixIt")
.put(this.hostServer + "/rest/continue-code/apply/" + e, {})
this.hostServer + "/rest/continue-code-findIt/apply/" + e,
this.hostServer + "/rest/continue-code-fixIt/apply/" + e,
type: "text/plain;charset=utf-8",
(this.host = this.hostServer + "/snippets");
return this.http.get(`${this.host}/${e}`).pipe(
(this.host = this.hostServer + "/snippets/fixes");
return this.http.get(this.host + `/${e}`).pipe(
(this.host = this.hostServer + "/snippets/verdict");

"https://docs.google.com/forms/d/e/1FAIpQLSdaNEuz0dzFA2sexCa0AJ4QOb2OYdEL04eQOLFD2Y
4T-BW6ag/viewform?usp=pp_url&entry.384948954=" +

"https://docs.google.com/forms/d/e/1FAIpQLSdaNEuz0dzFA2sexCa0AJ4QOb2OYdEL04eQOLFD2Y
4T-BW6ag/viewform?usp=pp_url&entry.384948954=" +
"/" +

"https://docs.google.com/forms/d/e/1FAIpQLSdaNEuz0dzFA2sexCa0AJ4QOb2OYdEL04eQOLFD2Y
4T-BW6ag/viewform?usp=pp_url&entry.384948954=" +

"https://docs.google.com/forms/d/e/1FAIpQLSdaNEuz0dzFA2sexCa0AJ4QOb2OYdEL04eQOLFD2Y
4T-BW6ag/viewform?usp=pp_url&entry.384948954=" +
(this.questionnaireUrl = "https://forms.gle/2Tr5m1pqnnesApxN8"),
(100 * n) /
(100 * e) /
let l = Math.round((100 * i) / r);
this.availableDifficulties.length / 2
this.availableChallengeCategories.length / 2
this.appName.toLowerCase().replace(/ /, "_")
return 1 === e.codingChallengeStatus ? "1/2" : "";
["src", "assets/public/images/padding/1px.png"],
"http://www.w3.org/2000/svg",
.post("./rest/2fa/verify", {
return this.http.get("./rest/2fa/status").pipe(
.post("./rest/2fa/setup", {
return this.http.post("./rest/2fa/disable", { password: e }).pipe(
return yield e.router.navigate(["/search"]);
"/6"
t.hij("", (null == e.value ? null : e.value.length) || 0, "/6"),
(this.totpUrl = `otpauth://totp/${b}:${r}?secret=$
{l}&issuer=${b}`),
.get(this.hostServer + "/rest/image-captcha/")
(this.host = this.hostServer + "/rest/user");
return this.http.post(this.host + "/erasure-request", e).pipe(
return this.http.post(this.host + "/data-export", e).pipe(
t.hij("", (null == e.value ? null : e.value.length) || 0, "/5"),
`<small>${e.data.lastLoginIp}</small>`
"//" +
"https://www.freeprivacypolicy.com/",
["src", "assets/public/images/padding/81px.png"],
t._uU(33, "Address, State, Province, ZIP/Postal code, City"),
'We will let you know via email and/or a prominent notice on
our Service, prior to the change becoming effective and update the "effective date"
at the top of this Privacy Policy.'
"/8"
"/160"
(this.host = this.hostServer + "/rest/wallet/balance");
(this.host = this.hostServer + "/api/Deliverys");
return this.http.get(`${this.host}/${e}`).pipe(
(this.host = this.hostServer + "/api/Cards");
return this.http.get(`${this.host}/${e}`).pipe(
return this.http.post(this.host + "/", e).pipe(
return this.http.delete(`${this.host}/${e}`).pipe(
t.xp6(1), t.AsE("", e.expMonth, "/", e.expYear, "");
"/16"
t.hij("", (null == e.value ? null : e.value.length) || 0, "/10"),
) /
return yield e.router.navigate(["/wallet"]);
"/deluxe-membership",
return yield e.router.navigate(["/order-summary"]);
url:
"./redirect?to=https://blockchain.info/address/1AbKfgvw9psQ41NbLi8kufDQTezwG8DRZm",
url:
"./redirect?to=https://explorer.dash.org/address/Xr556RzuwX6hg5EGpkybbv5RanJoZN17kW
",
url:
"./redirect?to=https://etherscan.io/address/0x0f933ab9fcaaa782d0279c300d73750e1311e
ae6",
"https://pwning.owasp-juice.shop/part3/donations.html",
["href", "./redirect?to=http://shop.spreadshirt.com/juiceshop"],
["href", "./redirect?to=http://shop.spreadshirt.de/juiceshop"],
"./redirect?to=https://www.stickeryou.com/products/owasp-juice-
shop/794",
["href", "./redirect?to=http://leanpub.com/juice-shop"],
(this.host = this.hostServer + "/rest/order-history");
return this.http.get(this.host + "/orders").pipe(
return this.http.put(`${this.host}/${e}/delivery-status`, n).pipe(
"https://twitter.com/",
`${this.basketService.hostServer}/ftp/order_${this.orderId}.pdf`,
"/track-result/new",
"https://twitter.com/intent/tweet?text=",
? (parseFloat(sessionStorage.getItem("couponDiscount")) / 100) *
"/order-completion",
return yield e.router.navigate(["/payment", "wallet"]);
points: Math.round(n.price / 10),
`${this.basketService.hostServer}/ftp/order_${e}.pdf`,
return yield n.router.navigate(["/track-result"], {
"assets/public/images/products/no-results.png",
return yield e.router.navigate(["/payment", "shop"]);
(this.host = this.hostServer + "/rest/memories");
return this.http.get(this.host + "/").pipe(
"https://twitter.com/intent/tweet?text=",
"https://twitter.com/",
"assets/public/images/products/no-results.png",
["enctype", "multipart/form-data", 3, "formGroup"],
{ path: "address/select", component: Br, canActivate: [Q] },
{ path: "address/saved", component: Jr, canActivate: [Q] },
{ path: "address/create", component: ve, canActivate: [Q] },
{ path: "address/edit/:addressId", component: ve, canActivate: [Q] },
(this.logoSrc = "assets/public/images/JuiceShop_Logo.png");
i.substring(i.lastIndexOf("/") + 1)
(this.logoSrc = `assets/public/images/${n || i}`);
return yield e.router.navigate(["/payment", "deluxe"]);
"http://www.w3.org/2000/svg",
"assets/public/images/deluxe/blankBoxes.png",
{ path: "order-completion/:id", component: vl },
{ path: "payment/:entity", component: Ss },
{ path: "track-result/new", component: Kt, data: { type: "new" } },
{ path: "2fa/enter", component: vr },
(this.host = this.hostServer + "/rest/admin");
return this.http.get(this.host + "/application-version").pipe(
return this.http.get(`${this.hostServer}/rest/languages`).pipe(
return ["privacy-security/privacy-policy"];
return ["privacy-security/data-export"];
return ["privacy-security/change-password"];
return ["privacy-security/two-factor-authentication"];
return ["privacy-security/last-login-ip"];
(this.logoSrc = "assets/public/images/JuiceShop_Logo.png"),
r.substring(r.lastIndexOf("/") + 1)
(this.logoSrc = "assets/public/images/" + r);
return yield n.router.navigate(["/search"], i);
return yield n.router.navigate(["/search"]);
return yield e.router.navigate(["/"]);
window.location.replace("./profile");
window.location.replace("./dataerasure");
"http://www.w3.org/1999/html",
"/search",
"Show/hide account menu",
"/login",
"/accounting",
"/basket",
"/order-history",
"/recycle",
"/address/saved",
"/saved-payment-methods",
"/wallet",
"/login",
"/accounting",
"/basket",
"/address/saved",
"/saved-payment-methods",
"/wallet",
"<p>Being a web application with a vast number of intended
security vulnerabilities, the <strong>OWASP Juice Shop</strong> is supposed to be
the opposite of a best practice or template application for web developers: It is
an awareness, training, demonstration and exercise tool for security risks in
modern web applications. The <strong>OWASP Juice Shop</strong> is an open-source
project hosted by the non-profit <a href='https://owasp.org' target='_blank'>Open
Web Application Security Project (OWASP)</a> and is developed and maintained by
volunteers. Check out the link below for more information and documentation on the
project.</p><h1><a href='https://owasp-juice.shop' target='_blank'>https://owasp-
juice.shop</a></h1>"),
.get(this.hostServer + "/rest/country-mapping")
return yield e.router.navigate(["/"]);
window.location.replace("./profile");
window.location.replace("./dataerasure");
"/login",
"/accounting",
"/contact",
"/complain",
"/chatbot",
"/about",
"/photo-wall",
"/deluxe-membership",
"/score-board",
"./redirect?to=https://github.com/bkimminich/juice-shop",
"/login",
"/accounting",
"/order-history",
"/recycle",
"/address/saved",
"/saved-payment-methods",
"/wallet",
"/order-history",
"/recycle",
"/address/saved",
"/saved-payment-methods",
"/wallet",
"privacy-security/privacy-policy",
"privacy-security/data-export",
"privacy-security/change-password",
"privacy-security/two-factor-authentication",
"privacy-security/last-login-ip",
"privacy-security/privacy-policy",
"privacy-security/data-export",
"privacy-security/change-password",
"privacy-security/two-factor-authentication",
"privacy-security/last-login-ip",
"/complain",
"/chatbot",
"/deluxe-membership",
"/score-board",
"./redirect?to=https://github.com/bkimminich/juice-shop",
return new Zc.w(o, "./assets/i18n/", ".json");

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy