documenter.getpostman.com
Open in
urlscan Pro
44.194.94.195
Public Scan
Submitted URL: https://userportal-cpqd.onrender.com/
Effective URL: https://documenter.getpostman.com/view/22983759/2s9Xy3tC1D
Submission: On August 12 via automatic, source certstream-suspicious — Scanned from DE
Effective URL: https://documenter.getpostman.com/view/22983759/2s9Xy3tC1D
Submission: On August 12 via automatic, source certstream-suspicious — Scanned from DE
Form analysis
0 forms found in the DOMText Content
* Body * Headers (18) * Body * Headers (18) * Body * Headers (18) * Body * Headers (18) * Body * Headers (18) Public Documentation Settings ENVIRONMENT No Environment LAYOUT Double Column LANGUAGE cURL - cURL UserPortal Introduction GET http://localhost:3000/api/product/fetch GET http://localhost:3000/api/product/fetch/:id GET http://localhost:3000/api/post/find GET http://localhost:3000/api/post/find/:postId GET http://localhost:3000/api/job/find GET http://localhost:3000/api/job/find/:postId POST http://localhost:3000/api/auth POST http://localhost:3000/api/login POST http://localhost:3000/api/product/add POST http://localhost:3000/api/post/add POST http://localhost:3000/api/job/create DEL http://localhost:3000/api/product/fetch/delete/:productId DEL http://localhost:3000/api/post/delete/:Id DEL http://localhost:3000/api/job/delete/:jobId USERPORTAL * Signup endpoint * Login endpoint * Products endpoints (Create Read & Delete) * Job endpoints (Create Read & Delete) * Post endpoints (Create Read & Delete) GETHTTP://LOCALHOST:3000/API/PRODUCT/FETCH http://localhost:3000/api/product/fetch A get request to get all product from the database StatusCode: 200 - success 409 - tokenError 500 - serverError Example Request Invalid token curl curl --location 'http://localhost:3000/api/product/fetch' 409 Conflict Example Response * Body * Headers (18) json { "message": "invalid token" } Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests Cross-Origin-Opener-Policy same-origin Cross-Origin-Resource-Policy same-origin Origin-Agent-Cluster ?1 Referrer-Policy no-referrer Strict-Transport-Security max-age=15552000; includeSubDomains X-Content-Type-Options nosniff X-DNS-Prefetch-Control off X-Download-Options noopen X-Frame-Options SAMEORIGIN X-Permitted-Cross-Domain-Policies none X-XSS-Protection 0 Content-Type application/json; charset=utf-8 Content-Length 27 ETag W/"1b-vdbCRHEl3J3b81u/YMssBiTkS2w" Date Thu, 10 Aug 2023 11:02:12 GMT Connection keep-alive Keep-Alive timeout=5 GETHTTP://LOCALHOST:3000/API/PRODUCT/FETCH/:ID http://localhost:3000/api/product/fetch/id A get request to get a single product from the database StatusCode: 200 - success 400 - invalid id 409 - tokenError 500 - serverError HEADERS Authorization Example Request Success View More curl curl --location 'http://localhost:3000/api/product/fetch/670d8efc-b634-42c9-bf64-eb77a37bcf3f' \ --header 'Authorization: ' 200 OK Example Response * Body * Headers (18) View More json { "product": { "statusCode": 200, "message": "product found", "product": { "_id": "64d4a1b9ca5a48a95f4d2c26", "productId": "670d8efc-b634-42c9-bf64-eb77a37bcf3f", "userId": "bfdbd633-b667-43b4-8817-2b5a010dd7f9", "Article": "Ps4", "Image": "Ps4 image", "Title": "A Ps4", "Price": 300, "__v": 0 } } } Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests Cross-Origin-Opener-Policy same-origin Cross-Origin-Resource-Policy same-origin Origin-Agent-Cluster ?1 Referrer-Policy no-referrer Strict-Transport-Security max-age=15552000; includeSubDomains X-Content-Type-Options nosniff X-DNS-Prefetch-Control off X-Download-Options noopen X-Frame-Options SAMEORIGIN X-Permitted-Cross-Domain-Policies none X-XSS-Protection 0 Content-Type application/json; charset=utf-8 Content-Length 272 ETag W/"110-Np+yDauV59RqwojnX2GPQC53DuY" Date Thu, 10 Aug 2023 11:07:27 GMT Connection keep-alive Keep-Alive timeout=5 GETHTTP://LOCALHOST:3000/API/POST/FIND http://localhost:3000/api/post/find A get request to get all post from the database StatusCode: 200 - success 409 - tokenError 500 - serverError HEADERS Authorization Bodyurlencoded Article A soccer game Image A soccer image Title A soccer image Example Request Success curl curl --location 'http://localhost:3000/api/post/find' \ --header 'Authorization: ' 200 OK Example Response * Body * Headers (18) View More json { "posts": { "statusCode": 200, "message": "post(s) found", "posts": [ { "_id": "64d4cab63d2d7d56e4dabc02", "postId": "07425c47-8da2-462e-9ffd-497917b8f03c", "userId": "896af3d7-da6a-4f3a-83cc-be77a54f9fca", "Article": "A soccer game", "Image": "A soccer image", "Title": "A soccer image", "likeCount": 0, "__v": 0 }, { "_id": "64d4cb073d2d7d56e4dabc05", "postId": "dbf5223f-6d47-442f-a751-6628767dda70", "userId": "896af3d7-da6a-4f3a-83cc-be77a54f9fca", "Article": "A soccer game part 2", "Image": "A soccer image 2", "Title": "A soccer image 2", "likeCount": 0, "__v": 0 } ] } } Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests Cross-Origin-Opener-Policy same-origin Cross-Origin-Resource-Policy same-origin Origin-Agent-Cluster ?1 Referrer-Policy no-referrer Strict-Transport-Security max-age=15552000; includeSubDomains X-Content-Type-Options nosniff X-DNS-Prefetch-Control off X-Download-Options noopen X-Frame-Options SAMEORIGIN X-Permitted-Cross-Domain-Policies none X-XSS-Protection 0 Content-Type application/json; charset=utf-8 Content-Length 533 ETag W/"215-N6uVKMkr6rY134IpZ0v5QigcQIk" Date Thu, 10 Aug 2023 11:34:29 GMT Connection keep-alive Keep-Alive timeout=5 GETHTTP://LOCALHOST:3000/API/POST/FIND/:POSTID http://localhost:3000/api/post/find/:postId A get request to get a single post from the database StatusCode: 200 - success 400 - invalid id 409 - tokenError 500 - serverError HEADERS Authorization PATH VARIABLES postId Example Request Error curl curl --location 'http://localhost:3000/api/post/find/64d4cb073d2d7d56e4dabc05' \ --header 'Authorization: ' 400 Bad Request Example Response * Body * Headers (18) json { "response": { "statusCode": 400, "message": "post not found" } } Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests Cross-Origin-Opener-Policy same-origin Cross-Origin-Resource-Policy same-origin Origin-Agent-Cluster ?1 Referrer-Policy no-referrer Strict-Transport-Security max-age=15552000; includeSubDomains X-Content-Type-Options nosniff X-DNS-Prefetch-Control off X-Download-Options noopen X-Frame-Options SAMEORIGIN X-Permitted-Cross-Domain-Policies none X-XSS-Protection 0 Content-Type application/json; charset=utf-8 Content-Length 58 ETag W/"3a-UkCt71GLI6bIhcZ/BU5DzfJYpFs" Date Thu, 10 Aug 2023 11:35:46 GMT Connection keep-alive Keep-Alive timeout=5 GETHTTP://LOCALHOST:3000/API/JOB/FIND http://localhost:3000/api/job/find A get request to get all the jobs from the database StatusCode: 200 - success 409 - tokenError 500 - serverError HEADERS Authorization Example Request Success curl curl --location 'http://localhost:3000/api/job/find' \ --header 'Authorization: ' 200 OK Example Response * Body * Headers (18) View More json { "jobs": { "statusCode": 200, "message": "jobs found", "jobs": [ { "_id": "64d5dddb7f99ef42cc79694b", "jobId": "51b763c0-ecaa-400c-ac83-6dbcf78d9b8d", "userId": "8277fe29-85ab-43ff-8487-af1a31cf5ade", "title": "internship at Google", "amount": 200, "description": "a simple job intership", "workPlaceType": "remote job and hybrid", "companyInfo": "google.com", "salary": 100000, "companyLogo": "google", "__v": 0 }, { "_id": "64d5de127f99ef42cc79694d", "jobId": "5144176e-59eb-4fbf-8cb0-1675f744e0f1", "userId": "8277fe29-85ab-43ff-8487-af1a31cf5ade", "title": "Backend role at mixies", "amount": 150, "description": "junior dev role", "workPlaceType": "remote job and hybrid", "companyInfo": "mixies.com", "salary": 90000, "companyLogo": "mixies", "__v": 0 }, { "_id": "64d5e02f7f99ef42cc796956", "jobId": "2fdcf40a-d766-4753-8bc0-2a8e47e3e6f3", "userId": "8277fe29-85ab-43ff-8487-af1a31cf5ade", "title": "Backend role at mixies", "amount": 150, "description": "junior dev role", "workPlaceType": "remote job and hybrid", "companyInfo": "mixies.com", "salary": 90000, "companyLogo": "mixies", "__v": 0 } ] } } Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests Cross-Origin-Opener-Policy same-origin Cross-Origin-Resource-Policy same-origin Origin-Agent-Cluster ?1 Referrer-Policy no-referrer Strict-Transport-Security max-age=15552000; includeSubDomains X-Content-Type-Options nosniff X-DNS-Prefetch-Control off X-Download-Options noopen X-Frame-Options SAMEORIGIN X-Permitted-Cross-Domain-Policies none X-XSS-Protection 0 Content-Type application/json; charset=utf-8 Content-Length 1028 ETag W/"404-gJ1KOSUHLWX/9L301yBZvHWYYpc" Date Fri, 11 Aug 2023 08:27:18 GMT Connection keep-alive Keep-Alive timeout=5