api code global jain
This commit is contained in:
70
resources/docs/1.0/sampraday.md
Normal file
70
resources/docs/1.0/sampraday.md
Normal file
@@ -0,0 +1,70 @@
|
||||
# API Docs
|
||||
|
||||
<a name="list"></a>
|
||||
## List
|
||||
|
||||
Details for sampraday list api
|
||||
##
|
||||
##
|
||||
|
||||
####Endpoint
|
||||
|
||||
> {warning} Please note that the URI for this endpoint should include api/{$version} before
|
||||
|
||||
| Method | URI | Headers |
|
||||
| : | :- | : |
|
||||
| GET | `user/sampraday-list` | Default |
|
||||
|
||||
### URL Params
|
||||
|
||||
```php
|
||||
None
|
||||
```
|
||||
|
||||
### Data Params
|
||||
|
||||
```php
|
||||
{
|
||||
"dharma_id" : "3"
|
||||
}
|
||||
```
|
||||
|
||||
> {success} Success Response
|
||||
|
||||
####Code `200`
|
||||
####Content
|
||||
```php
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Test",
|
||||
"status": 0,
|
||||
"created_by": 1,
|
||||
"updated_by": null,
|
||||
"created_at": "2022-01-13T09:10:58.000000Z",
|
||||
"updated_at": "2022-01-13T09:10:58.000000Z"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Test2",
|
||||
"status": 0,
|
||||
"created_by": 1,
|
||||
"updated_by": null,
|
||||
"created_at": "2022-01-13T09:11:10.000000Z",
|
||||
"updated_at": "2022-01-13T09:11:10.000000Z"
|
||||
}
|
||||
],
|
||||
"status": 200
|
||||
}
|
||||
```
|
||||
|
||||
> {danger} Unauthenticated Response
|
||||
|
||||
####Code `403`
|
||||
####Content
|
||||
```php
|
||||
{
|
||||
"message": "Something went wrong!"
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user