Public
Documentation Settings

GetMyPGOnline

user_controller

Register User

POSTRegister Admin

https://getmypgonline.herokuapp.com/api/users/register
HEADERS
Content-Type

application/json

Bodyraw
{
	"name": "Ritwick Bhargav",
	"email": "ritwickbhargav80@gmail.com",
	"contact": "+918218290235",
	"password": "merapassword",
	"role": "admin"
}
Example Request
curl
curl --location 'https://getmypgonline.herokuapp.com/api/users/register' \
--header 'Content-Type: application/json' \
--data-raw '{
	"name": "Ritwick Bhargav",
	"email": "ritwickbhargav80@gmail.com",
	"contact": "+918218290235",
	"password": "merapassword",
	"role": "admin"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTRegister Owner

https://getmypgonline.herokuapp.com/api/users/register
HEADERS
Content-Type

application/json

Bodyraw
{
	"name": "Ritwick",
	"email": "ritwickbhargav.RB@gmail.com",
	"contact": "+918076026224",
	"password": "merapassword1",
	"role": "owner"
}
Example Request
curl
curl --location 'https://getmypgonline.herokuapp.com/api/users/register' \
--header 'Content-Type: application/json' \
--data-raw '{
	"name": "Ritwick",
	"email": "ritwickbhargav.RB@gmail.com",
	"contact": "+918076026224",
	"password": "merapassword1",
	"role": "owner"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

POSTRegister Tenant

https://getmypgonline.herokuapp.com/api/users/register
HEADERS
Content-Type

application/json

Bodyraw
{
	"name": "Shikhar Sen",
	"email": "senshikhar1997@gmail.com",
	"contact": "+918218375862",
	"password": "merapassword2",
	"role": "tenant"
}
Example Request
curl
curl --location 'https://getmypgonline.herokuapp.com/api/users/register' \
--header 'Content-Type: application/json' \
--data-raw '{
	"name": "Shikhar Sen",
	"email": "senshikhar1997@gmail.com",
	"contact": "+918218375862",
	"password": "merapassword2",
	"role": "tenant"
}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers