Skip to content

Commit

Permalink
Add some API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanklee committed Jan 18, 2024
1 parent 67c5b8b commit 669e8a5
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,50 @@ cd Sapio
```
adb install ./app/build/outputs/apk/debug/app-debug.apk
```
# Public API
## Base url
```
https://sapio.ovh/api
```
## Endpoints
### List evaluations
- Endpoint: /sapio-applications
- Method: GET
- Description: List evaluations
- Parameters: https://docs.strapi.io/dev-docs/api/rest/parameters
- Result: https://docs.strapi.io/dev-docs/api/rest#requests
- Example: Get the latest 100 evaluations
```
curl -X GET "https://sapio.ovh/api/sapio-applications?pagination\[pageSize\]=100&sort=updatedAt:Desc"
```
### Search evaluations
- Endpoint: /sapio-applications
- Method: GET
- Description: Search evaluations
- Parameters: https://docs.strapi.io/dev-docs/api/rest/filters-locale-publication#filtering
- Result: https://docs.strapi.io/dev-docs/api/rest#requests
- Example: Search evaluations for an app called ChatGPT
```
curl -X GET "https://sapio.ovh/api/sapio-applications?filters\[name\]\[\$eq\]=ChatGPT"
```
### Get icons
- Endpoint: /upload/files
- Method: GET
- Description: Get icons
- Parameters: https://docs.strapi.io/dev-docs/api/rest/parameters
- Example: Get ChatGPT icon
```
curl -X GET "https://sapio.ovh/api/upload/files?filters\[name\]\[\$eq\]=com.openai.chatgpt.png"
```
# ☕ Coffee
If you want to offer me a coffee for the maintenance of the server part: https://paypal.me/jnthnkl
Expand Down

0 comments on commit 669e8a5

Please sign in to comment.