1.5 KiB
1.5 KiB
API Docs
List
Details for jati list api
####Endpoint
{warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| GET | /jati-detail | Bearer {token} |
URL Params
{
"dharma_id" : "1"
}
Data Params
None
{success} Success Response
####Code 200
####Content
{
"data": [
{
"id": 1,
"name": "Jalawadi Dasha Shrimali",
"status": 1,
"created_by": 1,
"updated_by": null,
"created_at": "2022-01-12T06:05:29.000000Z",
"updated_at": "2022-01-12T06:05:29.000000Z"
}
]
}
{danger} Unauthenticated Response
####Code 403
####Content
{
"message": "Something went wrong!"
}
Add
Details for add jati api
####Endpoint
{warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | user/add-jati | Bearer {token} |
URL Params
None
Data Params
{
"name": "XYZ"
}
{success} Success Response
####Code 200
####Content
{
"message": "Jati added successfully!",
"status": 200
}
{danger} Unauthenticated Response
####Code 403
####Content
{
"message": "Jati already exist!",
"status": 403
}