From 9319f5f5991c15f8e1ccb2a3079b0dd96c2e84b0 Mon Sep 17 00:00:00 2001 From: Revanth <109272714+revanth1718@users.noreply.github.com> Date: Fri, 9 Aug 2024 10:59:06 +0530 Subject: [PATCH] Rapid API --- New_APIs/Rapid API/index.html | 25 ++++++++++ New_APIs/Rapid API/index.js | 48 +++++++++++++++++++ New_APIs/Rapid API/manifest.json | 15 ++++++ New_APIs/Rapid API/pacjake.json | 15 ++++++ New_APIs/Rapid API/package-lock.json | 37 +++++++++++++++ New_APIs/Rapid API/style.css | 70 ++++++++++++++++++++++++++++ 6 files changed, 210 insertions(+) create mode 100644 New_APIs/Rapid API/index.html create mode 100644 New_APIs/Rapid API/index.js create mode 100644 New_APIs/Rapid API/manifest.json create mode 100644 New_APIs/Rapid API/pacjake.json create mode 100644 New_APIs/Rapid API/package-lock.json create mode 100644 New_APIs/Rapid API/style.css diff --git a/New_APIs/Rapid API/index.html b/New_APIs/Rapid API/index.html new file mode 100644 index 0000000..cc853e3 --- /dev/null +++ b/New_APIs/Rapid API/index.html @@ -0,0 +1,25 @@ + + +
+ + + +Category: ${api.category}
+Description: ${api.description}
+ Explore API + `; +} + +function displayError(message) { + const apiDiv = document.getElementById('api'); diff --git a/New_APIs/Rapid API/manifest.json b/New_APIs/Rapid API/manifest.json new file mode 100644 index 0000000..73a3e98 --- /dev/null +++ b/New_APIs/Rapid API/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "RapidAPIApp", + "name": "RapidAPI Marketplace", + "icons": [ + { + "src": "icon.png", + "type": "image/png", + "sizes": "192x192" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#00c6ff", + "background_color": "#0072ff" +} diff --git a/New_APIs/Rapid API/pacjake.json b/New_APIs/Rapid API/pacjake.json new file mode 100644 index 0000000..1f322da --- /dev/null +++ b/New_APIs/Rapid API/pacjake.json @@ -0,0 +1,15 @@ +{ + "name": "rapidapi-marketplace-app", + "version": "1.0.0", + "description": "A simple app to discover random APIs from RapidAPI Marketplace", + "main": "index.js", + "scripts": { + "start": "node server.js" + }, + "author": "Your Name", + "license": "ISC", + "dependencies": { + "express": "^4.17.1" + } + } + \ No newline at end of file diff --git a/New_APIs/Rapid API/package-lock.json b/New_APIs/Rapid API/package-lock.json new file mode 100644 index 0000000..6f9a634 --- /dev/null +++ b/New_APIs/Rapid API/package-lock.json @@ -0,0 +1,37 @@ +{ + "name": "rapidapi-marketplace-app", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-G7fYv8zS0D7ftu3gnLsOniwhgLU4k9v+1NEtFPP07/Oa8XJ51FtdUKLqIvsTcZo5ua23NO4s9Hr77BM19DOf1g==", + "requires": { + "accepts": "1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "1.1.2", + "encodeurl": "1.0.2", + "escape-html": "1.0.3", + "etag": "1.8.1", + "finalhandler": "1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "1.1.2", + "on-finished": "2.3.0", + "parseurl": "1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "2.0.6", + "qs": "6.7.0", + "range-parser": "1.2.1" + } + } + } + } + \ No newline at end of file diff --git a/New_APIs/Rapid API/style.css b/New_APIs/Rapid API/style.css new file mode 100644 index 0000000..de8cfc7 --- /dev/null +++ b/New_APIs/Rapid API/style.css @@ -0,0 +1,70 @@ +body { + font-family: 'Arial', sans-serif; + background: linear-gradient(135deg, #00c6ff, #d3e84a); + color: #333; + margin: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 100vh; +} + +header { + text-align: center; + margin-bottom: 20px; +} + +header h1 { + font-size: 3em; + color: #fff; +} + +main { + background: rgba(255, 255, 255, 0.9); + padding: 20px; + border-radius: 10px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + text-align: center; +} + +section { + margin-bottom: 20px; +} + +h2 { + font-size: 2em; + margin-bottom: 10px; + color: #00c6ff; +} + +button { + padding: 10px 20px; + font-size: 1em; + color: #fff; + background-color: #00c6ff; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s; +} + +button:hover { + background-color: #0072ff; +} + +#api-info { + margin-top: 20px; +} + +#api { + font-size: 1.2em; + background: #fff; + padding: 20px; + border-radius: 10px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +#api p { + margin: 10px 0; +}