57 lines
764 B
Markdown
57 lines
764 B
Markdown
|
|
# API Docs
|
||
|
|
|
||
|
|
<a name="list"></a>
|
||
|
|
## List
|
||
|
|
|
||
|
|
Details for Hospitals list api
|
||
|
|
##
|
||
|
|
##
|
||
|
|
|
||
|
|
####Endpoint
|
||
|
|
|
||
|
|
> {warning} Please note that the URI for this endpoint should include api/{$version} before
|
||
|
|
|
||
|
|
| Method | URI | Headers |
|
||
|
|
| : | :- | : |
|
||
|
|
| GET | `/hospitals` | Bearer {token} |
|
||
|
|
|
||
|
|
### URL Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
|
||
|
|
```
|
||
|
|
|
||
|
|
### Data Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
None
|
||
|
|
```
|
||
|
|
|
||
|
|
> {success} Success Response
|
||
|
|
|
||
|
|
####Code `200`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"data": [
|
||
|
|
{
|
||
|
|
"id": 1,
|
||
|
|
"name": "Shree Evershine Paradise Shwetamber Murtipujak Tapagach Sangh",
|
||
|
|
"area" : "ahmedabad"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"status": 200
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
> {danger} Unauthenticated Response
|
||
|
|
|
||
|
|
####Code `403`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"message": "Something went wrong!"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|