Categorized each APIs

pull/4/head
daffainfo 2021-08-16 10:26:23 +07:00
parent 458f9af07f
commit c5c1ff8299
3 changed files with 160 additions and 38 deletions

77
Animals/README.md Normal file
View File

@ -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}
```

47
Anime/README.md Normal file
View File

@ -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-_.+/=]*$
```

View File

@ -1,44 +1,42 @@
# 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__
* Curl
```
curl --request GET \
--url https://api.thecatapi.com/v1/votes \
--header 'x-api-key: DEMO-API-KEY'
```
## How to Contribute?
* Raw
```
GET /v1/votes HTTP/1.1
Host: api.thecatapi.com
x-api-key: DEMO-API-KEY
```
# [Title Web](Link Documentation)
## __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"
}
```
## __Example Request__
* Curl
```
Curl Request
```
## __Regex__
```
[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[0-9a-z]{12}
```
* Raw
```
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)