-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: ๐๏ธ [api] api is maintained by a specifc arm of ICSSC * docs: ๐๏ธ [api] redo "what is ICSSC" defer to club events page about event times, make some mildly opinionated tweaks * docs: ๐๏ธ [api] link attribution from about * docs: ๐๏ธ [api] tighten language about research data * docs: ๐๏ธ [api] historical data info out of accordions, reword * docs: ๐๏ธ [api] reword inviting non-projects people * docs: ๐๏ธ [api] link to contributor docs will fill out said contributor docs * docs: ๐๏ธ [api] import anteater-api/CONTRIBUTING.md * docs: ๐๏ธ [api] mention docker compose is not strictly needed * docs: ๐๏ธ [api] contrib guide clarity * docs: ๐๏ธ [api] reorder contrib landing, language tweak * docs: ๐๏ธ [api] about api at index.md * docs: ๐๏ธ [api] move attribution to about section this requires chair approval * docs: ๐๏ธ [api] fix 404 on dev landing * docs: ๐๏ธ [api] add one linebreak * docs: ๐๏ธ [api] link dev docs to about * docs: ๐๏ธ [api] clarify anteater offers both rest and gql * docs: ๐๏ธ [api] example of REST resource, whitespace * docs: ๐๏ธ [api] clarify what gql is, whitespace * docs: ๐๏ธ [api] new getting started page, move some content onto it * docs: ๐๏ธ [api] finish dev getting started * docs: ๐๏ธ [api] best practices -> "keys and limits" * docs: ๐๏ธ [api] keys page whitespace * docs: ๐๏ธ [api] grammar * docs: ๐๏ธ [api] per-key ratelimit clarification * docs: ๐๏ธ [api] how to use api keys also whitespace * docs: ๐๏ธ [api] clarify requests is a python lib * docs: ๐๏ธ [api] clarify in snippets any endpoint is ok * docs: ๐๏ธ [api] as of node 18 importing fetch is unnecessary everywhere * docs: ๐๏ธ [api] attribution policy back in dev docs sidebar * docs: ๐๏ธ [api] state graphql url * docs: ๐๏ธ [api] tighter language * docs: ๐๏ธ [api] link to gh when we say FOSS how did we never do this before * docs: ๐๏ธ [api] shorten contrib setup title * docs: ๐๏ธ [api] use <Step> for contrib setup steps * docs: ๐๏ธ [api] wording tweak * docs: ๐๏ธ [api] page descriptions * docs: ๐๏ธ [api] move attribution to developer category #33 (comment) * docs: ๐๏ธ [api] title case in title * docs: ๐๏ธ [api] description tweak
- Loading branch information
1 parent
c65d091
commit dbfce30
Showing
10 changed files
with
201 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Anteater API | ||
description: Basic information about Anteater API | ||
--- | ||
|
||
## What is Anteater API? | ||
|
||
Anteater API provides various data from the University of California, Irvine, in a structured format that can be used by other software. | ||
|
||
Anteater API is maintained by its team within the Projects Committee of the ICS Student Council (ICSSC). | ||
|
||
## What is ICSSC? | ||
|
||
ICS Student Council is a far-reaching organization that aims to improve student life within and beyond the Donald Bren School of Information and Computer Sciences. | ||
|
||
Feel free to join us at our [events](https://icssc.club/events). All UCI affiliates are welcome. | ||
|
||
Learn more about how you can get involved with us [here](https://icssc.club/get-involved). | ||
|
||
## Using Anteater API in Your Software | ||
|
||
If you're building an application that manipulates public data provided by the school, the Anteater API likely has you covered. | ||
|
||
You can learn about the capabilities of Anteater API, and how to use it, [here](/docs/developer/anteaterapi). | ||
|
||
Any use of Anteater API for any purpose is bound by the [attribution policy](/docs/developer/anteaterapi/attribution-policy). | ||
|
||
## Using Anteater API for Research | ||
|
||
Anteater API contains a wealth of historical data of potential research interest. The following is a non-exhaustive list of historical data we serve: | ||
|
||
- **Schedule of Classes** for terms not earlier than fall 1990. | ||
- **Letter grade distributions** for course offerings not earlier than summer 2014. | ||
- **Course enrollment trends** for course sections held not earlier than winter 2022. | ||
|
||
If there's more publicly available data that you'd like to see us provide for research, please don't hesitate to reach out. | ||
|
||
## Contributing to Anteater API | ||
|
||
Anteater API is free and open-source software (FOSS). The word "free" in this context is as in free speech, though there is also no monetary cost to use Anteater API. This means that everyone can view its [source code](https://github.com/icssc/anteater-api) to see how it works, and everyone is allowed to contribute to Anteater API and/or redistribute its source code. | ||
|
||
For more information on contributing to Anteater API, see the [contributor section](/docs/contributor/anteaterapi) of the Anteater API documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
title: Anteater API | ||
--- | ||
|
||
To learn how to set up a development environment for Anteater API, see the [setup guide](/docs/contributor/anteaterapi/setup). | ||
|
||
The Anteater API team may invite active contributors to join the team if they are not already part of the ICSSC Projects Committee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
title: Setting Up | ||
description: How to set up a local Anteater API environment to contribute | ||
--- | ||
|
||
import { Step, Steps } from 'fumadocs-ui/components/steps'; | ||
|
||
Thank you for your interest in contributing to Anteater API! | ||
|
||
## โ Getting Started | ||
|
||
### ๐ ๏ธ Prerequisites | ||
|
||
- For Windows users: A [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install) instance | ||
- A Node.js environment | ||
- [pnpm](https://pnpm.io/installation), a blazingly fast package manager for Node.js | ||
- [nvm](https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script), a version manager for Node.js | ||
- [Docker Compose](https://docs.docker.com/compose/install/) for running the local database server, or an already running PostgreSQL server | ||
- Optionally: [PostgreSQL](https://www.postgresql.org/download/) version 16, for generating database dumps | ||
|
||
### ๐งโ๐ป Setting Up | ||
|
||
<Steps> | ||
|
||
<Step> | ||
Clone the repository and change into it. In your command line: | ||
|
||
```shell | ||
git clone [email protected]:icssc/anteater-api.git | ||
cd anteater-api | ||
``` | ||
</Step> | ||
|
||
<Step> | ||
Make a copy of the `.env.example`. | ||
|
||
```shell | ||
cp .env.example .env | ||
``` | ||
</Step> | ||
|
||
<Step> | ||
Install the dependencies. | ||
|
||
```shell | ||
pnpm i | ||
``` | ||
</Step> | ||
|
||
<Step> | ||
Download the latest version of the database dump [here](https://anteater-api-dump.s3.us-west-1.amazonaws.com/db.sql.gz), and move it into the `packages/db` directory. | ||
|
||
_Optional_: Verify the integrity of the database dump. | ||
|
||
To do this, download the checksum [here](https://anteater-api-dump.s3.us-west-1.amazonaws.com/db.sql.gz.sha256sum), move it into the `packages/db` directory, then run the following command: | ||
|
||
```shell | ||
sha256sum -c db.sql.gz.sha256sum | ||
``` | ||
|
||
If the checksum does not match, the database dump may be corrupt or have been tampered with. You should delete it immediately and try downloading it again. | ||
</Step> | ||
|
||
<Step> | ||
Start the local Postgres database. If you are using Docker Compose, as we recommend above, this is simple: | ||
|
||
```shell | ||
docker-compose up -d | ||
``` | ||
</Step> | ||
|
||
<Step> | ||
Start the development server. | ||
|
||
```shell | ||
pnpm dev | ||
``` | ||
|
||
The process of database seeding (importing data from the database dump) can take a while. If at first this fails, wait a few minutes before trying again. | ||
|
||
The development server will automatically reload upon any changes to the codebase. This will aid in your testing. | ||
</Step> | ||
|
||
</Steps> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Getting Started | ||
description: What you need to do in order to start using Anteater API | ||
--- | ||
|
||
**This page is for Anteater API users. Potential contributors refer to the [Contributor Docs](/docs/contributor/anteaterapi).** | ||
|
||
## REST or GraphQL? | ||
|
||
The first choice you need to make when using Anteater API is between our REST API and our GraphQL API. | ||
The correct choice is dependent on your use case and, to some degree, on personal preference. | ||
It is akin to the choice of which programming language to use. | ||
|
||
## Authorization | ||
|
||
Unlike some other Web APIs, Anteater API does not require API keys or authentication, so you can start using this API immediately. | ||
However, there are still advantages to seeking an API key; learn how to obtain and use one [here](./keys-limits). | ||
|
||
## Choosing your stack | ||
|
||
If your application is not already fully set up to handle REST or GraphQL, you will need to add to your stack, the list of technologies powering your application. | ||
Examples of parts of your stack include your language (e.g. JavaScript), frameworks (e.g. React), and, most relevantly to Anteater API, your HTTP client. | ||
If using GraphQL, you may also want to select a specialized GraphQL client. | ||
|
||
We have a guide on integrating our REST API with TypeScript [here](/docs/developer/anteaterapi/rest-api/guides/typescript-integration). | ||
|
||
## Attribution | ||
|
||
If you use Anteater API, you **must** follow the [Attribution Policy](./attribution-policy). | ||
|
||
## Reading documentation | ||
|
||
Finally, read the API reference for [REST](https://anteaterapi.com/reference) or try the [GraphQL Sandbox](https://studio.apollographql.com/sandbox/explorer?endpoint=https://anteaterapi.com/v2/graphql). | ||
Both provide exhaustive documentation of what Anteater API offers. | ||
|
||
Have fun! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters