Skip to content

Commit

Permalink
[API] Endpoint doc
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Jul 15, 2020
1 parent e611079 commit b9701ce
Showing 1 changed file with 65 additions and 4 deletions.
69 changes: 65 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,71 @@ You can access the dashboard by going to [localhost:5000](http://localhost:5000)

If needed create a `.env` file with information that you would like to overload from config.py

## API

### Lighthouse

| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Audits | `/api/audit/lighthouse/score` | `None` |
| **GET** | Audit by Id | `/api/audit/lighthouse/score/<id>` | `id` |
| **POST** | Generates an Audit | `/api/audit/lighthouse/score` | `url` |

### Extract
#### Headers
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Extracted Headers | `/api/extract/headers` | `None` |
| **GET** | Headers by Id | `/api/extract/headers/<id>` | `id` |
| **POST** | Extract Header from URL | `/api/extract/headers` | `url` |
| **POST** | Deletes Headers by Id | `/api/extract/headers/delete` | `id` |

#### Status Code Links
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Links status extracted from pages| `/api/extract/links` | `None` |
| **GET** | Links Status by ID | `/api/extract/links/<id>` | `id` |
| **POST** | Extracts link status from URL | `/api/extract/links` | `url` |
| **POST** | Delete Link status by ID | `/api/extract/links/delete` | `id` |

#### Internal & External Links
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Internal & External links extracted from pages | `/api/extract/links/website` | `None` |
| **GET** | Internal & External by ID | `/api/extract/links/website/<id>` | `id` |
| **POST** | Extracts Internal & External links from URL | `/api/extract/links/website` | `url` |
| **POST** | Deletes Internal & External links by ID | `/api/extract/links/website/delete` | `id` |

#### Images
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Images extracted from pages | `/api/extract/images` | `None` |
| **GET** | Images by ID | `/api/extract/images/<id>` | `id` |
| **POST** | Extracts Images from URL | `/api/extract/images` | `url` |
| **POST** | Deletes Images by ID | `/api/extract/images/delete` | `id` |

### Internal Linking Graphs
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Internal Linking Graphs generated | `/api/graphs` | `None` |
| **GET** | Graphs by ID | `/api/graphs/<id>` | `id` |
| **POST** | Extracts graph from domain | `/api/graphs` | `domain` |
| **POST** | Deletes Graphs by ID | `/api/graphs/delete` | `id` |

### Query Keywords Generator
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Keywords generated | `/api/keywords` | `None` |
| **GET** | Keywords by ID | `/api/keywords/<id>` | `id` |
| **POST** | Extracts keywords from query | `/api/keywords` | `query` |
| **POST** | Deletes Keywords by ID | `/api/keywords/delete` | `id` |

### Search Engine Result Page Rank
| METHOD | DESCRIPTION | ENDPOINT | PARAMS |
| :-------------: |-------------| -----|-----|
| **GET** | All Ranks | `/api/rank` | `None` |
| **POST** | Extracts ranks from query and domain | `/api/rank` | `query` & `domain` |
| **POST** | Deletes ranks by ID | `/api/rank/delete` | `id` |


## Screenshots
Expand All @@ -91,7 +156,3 @@ If needed create a `.env` file with information that you would like to overload
### Images Extractor

![](examples/images.png)

## API

The API won't be maintained for now as I am moving towards the dashboard. Existing endpoints will still be working. If you need informations on the API please visit an [older](https://github.com/StanGirard/SEOToolkit/tree/ed6a59513921d5e58f3c69839274cd59b1e33fb2) version of the project.

0 comments on commit b9701ce

Please sign in to comment.