Skip to content

Commit

Permalink
Document paper endpoints (#1310)
Browse files Browse the repository at this point in the history
* Update api.md

* Update docs/hub/api.md

Co-authored-by: Julien Chaumond <[email protected]>

---------

Co-authored-by: Julien Chaumond <[email protected]>
  • Loading branch information
osanseviero and julien-c authored Jun 19, 2024
1 parent e8130ce commit 0cad1ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/hub/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ This is equivalent to `huggingface_hub.space_info(repo_id, revision)`.
## Repo API

The following endpoints manage repository settings like creating and deleting a repository.

### POST /api/repos/create

Create a repository. It's a model repo by default.
Expand Down Expand Up @@ -258,6 +259,18 @@ headers = { "authorization" : "Bearer $token" }

This is equivalent to `huggingface_hub.whoami()`.

## Paper Pages API

The following endpoint gets information about a paper.

### GET /api/arxiv/{arxiv_id}/repos

Get all the models, datasets, and Spaces that refer to a paper.

### GET /api/daily_papers

Get the daily papers curated by AK and the community. It's the equivalent of [https://huggingface.co/papers](https://huggingface.co/papers).

## Collections API

Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page.
Expand Down

0 comments on commit 0cad1ee

Please sign in to comment.