Public
Documentation Settings

HackCity

Postman Documentation: Content Management System

Introduction

This Postman documentation provides a comprehensive guide for interacting with the Content Management System (CMS). The CMS allows users to sign up, create posts, manage post categories, and provides an admin dashboard for monitoring events within the application.

User

User here are authors of posts made on the platform

AUTHORIZATIONBearer Token
Token

<token>

Auth

Making Use of Google Oauth and Local passport Login

AUTHORIZATIONBearer Token
This folder is using Bearer Token from folderUser

POSTRegister User

localhost:3000/api/v1/auth/register
AUTHORIZATIONBearer Token
This request is using Bearer Token from folderUser
Bodyraw (json)
json
{
    "email": "Victorokoye@demo.com",
    "username": "victorokoye",
    "password": "qwertyuiop"
}
Example Request
curl
curl --location 'localhost:3000/api/v1/auth/register' \
--data-raw '{
    "email": "Victorokoye@demo.com",
    "username": "victorokoye",
    "password": "qwertyuiop"
}'
201 Created
Example Response
json
{
  "statusCode": 200,
  "data": {
    "email": "Victorokoye@demo.com",
    "username": "victorokoye",
    "id": "02123a04-e938-4ed9-acd7-12c6616c63f2",
    "isSocialLogin": false,
    "createdAt": "2023-12-06T04:09:14.810Z",
    "updatedAt": "2023-12-06T04:09:14.810Z"
  },
  "message": "success"
}
X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

247

ETag

W/"f7-hs+IdozTiiDs9gTlt5jbUsDjLBU"

Date

Wed, 06 Dec 2023 04:09:15 GMT

Connection

keep-alive

Keep-Alive

timeout=5