Categorized each APIs
parent
458f9af07f
commit
c5c1ff8299
|
@ -0,0 +1,77 @@
|
||||||
|
# Animals
|
||||||
|
list of animals API
|
||||||
|
|
||||||
|
# [TheCatApi](https://docs.thecatapi.com/)
|
||||||
|
|
||||||
|
## __Example Request__
|
||||||
|
* Curl
|
||||||
|
```
|
||||||
|
curl --request GET \
|
||||||
|
--url https://api.thecatapi.com/v1/votes \
|
||||||
|
--header 'x-api-key: DEMO-API-KEY'
|
||||||
|
```
|
||||||
|
|
||||||
|
* Raw
|
||||||
|
```
|
||||||
|
GET /v1/votes HTTP/1.1
|
||||||
|
Host: api.thecatapi.com
|
||||||
|
x-api-key: DEMO-API-KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Response__
|
||||||
|
* Success
|
||||||
|
```
|
||||||
|
[{
|
||||||
|
"id": 31098,
|
||||||
|
"image_id": "43u",
|
||||||
|
"sub_id": null,
|
||||||
|
"created_at": "2018-10-24T08:36:13.000Z",
|
||||||
|
"value": 1,
|
||||||
|
"country_code": null
|
||||||
|
}]
|
||||||
|
```
|
||||||
|
* Error
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"message": "AUTHENTICATION_ERROR - no valid x-api-key in header",
|
||||||
|
"status": 401,
|
||||||
|
"level": "info"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Regex__
|
||||||
|
```
|
||||||
|
[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[0-9a-z]{12}
|
||||||
|
```
|
||||||
|
|
||||||
|
# [IUCN](http://apiv3.iucnredlist.org/api/v3/docs)
|
||||||
|
|
||||||
|
## __Example Request__
|
||||||
|
* Curl
|
||||||
|
```
|
||||||
|
curl --request GET \
|
||||||
|
--url http://apiv3.iucnredlist.org/api/v3/country/list?token=API-KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
* Raw
|
||||||
|
```
|
||||||
|
GET /api/v3/country/list?token=API-KEY HTTP/1.1
|
||||||
|
Host: apiv3.iucnredlist.org
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Response__
|
||||||
|
* Success
|
||||||
|
```
|
||||||
|
{"count":251,"results":[{"isocode":"UZ","country":"Uzbekistan"},{"isocode":"QA","country":"Qatar"}....]
|
||||||
|
```
|
||||||
|
* Error
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"message":"Token not valid!"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Regex__
|
||||||
|
```
|
||||||
|
[a-z0-9]{64}
|
||||||
|
```
|
|
@ -0,0 +1,47 @@
|
||||||
|
# Animals
|
||||||
|
list of anime API
|
||||||
|
|
||||||
|
# [AniAPI](https://aniapi.com/docs/authentication)
|
||||||
|
|
||||||
|
## __Example Request__
|
||||||
|
* Curl
|
||||||
|
```
|
||||||
|
curl -i https://api.aniapi.com/v1/auth/me \
|
||||||
|
-H "Authorization: Bearer <YOUR_JWT>"
|
||||||
|
```
|
||||||
|
|
||||||
|
* Raw
|
||||||
|
```
|
||||||
|
GET /v1/auth/me HTTP/1.1
|
||||||
|
Host: api.aniapi.com
|
||||||
|
Authorization: Bearer <YOUR_JWT>
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Response__
|
||||||
|
* Success
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"status_code": 200,
|
||||||
|
"message": "Hi Daffa",
|
||||||
|
"data": {
|
||||||
|
"username": "Daffa",
|
||||||
|
"id": 1,
|
||||||
|
//...
|
||||||
|
},
|
||||||
|
"version": "1"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
* Error
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"status_code": 401,
|
||||||
|
"message": "Unauthorized",
|
||||||
|
"data": "Invalid Authorization header",
|
||||||
|
"version": "1"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Regex__
|
||||||
|
```
|
||||||
|
^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$
|
||||||
|
```
|
74
README.md
74
README.md
|
@ -1,44 +1,42 @@
|
||||||
# All About API
|
# All About API
|
||||||
|
A repository containing a detailed list of API information
|
||||||
|
|
||||||
# 1. [TheCatApi](https://docs.thecatapi.com/)
|
![](https://img.shields.io/github/license/daffainfo/all-about-api)
|
||||||
|
![](https://img.shields.io/github/issues/daffainfo/all-about-api)
|
||||||
|
![](https://img.shields.io/github/forks/daffainfo/all-about-api)
|
||||||
|
![](https://img.shields.io/github/stars/daffainfo/all-about-api)
|
||||||
|
![](https://img.shields.io/github/last-commit/daffainfo/all-about-api)
|
||||||
|
|
||||||
## __Request__
|
## How to Contribute?
|
||||||
* Curl
|
|
||||||
```
|
|
||||||
curl --request GET \
|
|
||||||
--url https://api.thecatapi.com/v1/votes \
|
|
||||||
--header 'x-api-key: DEMO-API-KEY'
|
|
||||||
```
|
|
||||||
|
|
||||||
* Raw
|
# [Title Web](Link Documentation)
|
||||||
```
|
|
||||||
GET /v1/votes HTTP/1.1
|
|
||||||
Host: api.thecatapi.com
|
|
||||||
x-api-key: DEMO-API-KEY
|
|
||||||
```
|
|
||||||
|
|
||||||
## __Response__
|
## __Example Request__
|
||||||
* Success
|
* Curl
|
||||||
```
|
```
|
||||||
[{
|
Curl Request
|
||||||
"id": 31098,
|
```
|
||||||
"image_id": "43u",
|
|
||||||
"sub_id": null,
|
|
||||||
"created_at": "2018-10-24T08:36:13.000Z",
|
|
||||||
"value": 1,
|
|
||||||
"country_code": null
|
|
||||||
}]
|
|
||||||
```
|
|
||||||
* Error
|
|
||||||
```
|
|
||||||
{
|
|
||||||
"message": "AUTHENTICATION_ERROR - no valid x-api-key in header",
|
|
||||||
"status": 401,
|
|
||||||
"level": "info"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## __Regex__
|
* Raw
|
||||||
```
|
```
|
||||||
[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[0-9a-z]{12}
|
Raw Request
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## __Response__
|
||||||
|
* Success
|
||||||
|
```
|
||||||
|
Response if succes
|
||||||
|
```
|
||||||
|
* Error
|
||||||
|
```
|
||||||
|
Response if error
|
||||||
|
```
|
||||||
|
|
||||||
|
## __Regex__
|
||||||
|
```
|
||||||
|
Regex for checking the API
|
||||||
|
```
|
||||||
|
|
||||||
|
## References
|
||||||
|
- [KeyHacks](https://github.com/streaak/keyhacks)
|
||||||
|
- [public-apis](https://github.com/public-apis/public-apis)
|
Loading…
Reference in New Issue