Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.62 KB

README.md

File metadata and controls

68 lines (52 loc) · 1.62 KB

Board Backend API

.github/workflows/build.yml

The API processes the stored information (scraped submissions, contests, ...etc.) in the database and returns it in a ready to view format.

Usage

  • Clone the repository
  • Install the dependencies: npm install
  • Create .env file and add the required variables from .env.example

Development

npm run dev

API

GET /

The root / endpoint is the only available endpoint.
It returns all the required info to view the submissions summary.

required query variable:

{
  "record": {
    "groups": [
      {
        "id": "MWSDmqGsZm",
        "contests": [
          "219158",
          219432
        ]
      }
    ],
    "trainees": [
      {
        "name": "Amr Salama",
        "handle": "AmrSalama"
      },
      {
        "name": "Kerollos Magdy",
        "handle": "Kerolloz"
      }
    ]
  },
  "metadata": {
    "id": "6175e8fc9548541c29c80745",
    "private": false,
    "createdAt": "2021-10-24T23:15:08.155Z"
  }
}

Response Format

Example:

https://api.boardy.tk/?configs=https://api.jsonbin.io/v3/b/6175e8fc9548541c29c80745

Open the URL to see the response.