Public
Documentation Settings

Blog-Server

Introduction

  • Blog Server Rest API development
  • GitHub Repo Link

Overview

All the API which I developed during youtube series video will be published over here Youtube Channel Link

Note

  • Documentation is in the development mode :)
  • And Also help me to grow this channel please subscribe :)

users

The API documentation related to user like -:

  • SignIn/SignUp a user with blog app.
  • Checking the User uniqueness

will go here

POSTRegister a new User with Blog App

https://sheltered-waters-80365.herokuapp.com/user/register

Use the dropdown to see the example

  • Duplicate Username error
  • Successfully username registration
Bodyraw (json)
json
{
  "username": "devStack06",
  "password": "12345",
  "email":"devstackin@gmail.com"
}
Example Request
curl
curl --location 'https://sheltered-waters-80365.herokuapp.com/user/register' \
--data-raw '{
  "username": "devStack06",
  "password": "12345",
  "email":"devstackin@gmail.com"
}'
200 OK
Example Response
json
{
  "msg": "User Successfully Registered"
}
Server

Cowboy

Connection

keep-alive

X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

38

Etag

W/"26-NWk1ZUlhmUa5VqEcx6ahRSWU7M0"

Date

Mon, 06 Jul 2020 12:49:31 GMT

Via

1.1 vegur

POSTLogin a User with Blog App

http://localhost:5000/user/login

Login a user with blog app and get a token back as a response

Bodyraw (json)
json
{
  "username": "devStack06",
  "password": "12345"
}
Example Request
curl
curl --location 'https://sheltered-waters-80365.herokuapp.com/user/login' \
--data '{
  "username": "devStack06",
  "password": "12345"
}'
200 OK
Example Response
json
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImRldlN0YWNrMDYiLCJpYXQiOjE1OTQwNDExNjYsImV4cCI6MTU5NDEyNzU2Nn0.pYR4IzMeOPh4WvfCzhgzIYY8hNzhiXoLs30JEMsoE3k",
  "msg": "success"
}
Server

Cowboy

Connection

keep-alive

X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

188

Etag

W/"bc-3bbV3tHTBoOwreA8TCQBFf7cgck"

Date

Mon, 06 Jul 2020 13:12:46 GMT

Via

1.1 vegur

GETCheck Username Uniqueness

https://sheltered-waters-80365.herokuapp.com/user/checkusername/devStack

Check the username is exist in database or not

Example Request
curl
curl --location 'https://sheltered-waters-80365.herokuapp.com/user/checkusername/devStack103'
200 OK
Example Response
json
{
  "Status": true
}
Server

Cowboy

Connection

keep-alive

X-Powered-By

Express

Content-Type

application/json; charset=utf-8

Content-Length

15

Etag

W/"f-z/O9WX3pukwNLINqM0mIX+83nso"

Date

Mon, 06 Jul 2020 13:17:33 GMT

Via

1.1 vegur