Retrieve a list of repositories
GEThttps://api.pharia.example.com/v1/studio/data/repositories
Fetches a paginated list of all available repositories with optional filters for media type, modality, and name.
Request
Query Parameters
page integer
The page number to retrieve, used for paginated responses.
size integer
The number of items to include per page in the response.
media_type string
Filter repositories by their specific media type, such as application/x-ndjson, application/csv
modality string
Filter repositories by modality, indicating the format or approach, like text.
name string
Search for repositories by their specific name.
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
repositories object[]
pageinteger
The current page number in the paginated list.
Example:
0
sizeinteger
The number of repositories displayed per page.
Example:
1
totalinteger
The total number of repositories available.
Example:
1
{
"repositories": [
{
"repositoryId": "cb26237c-3beb-40f3-8e13-77d862f722b5",
"name": "My Repository",
"mediaType": "application/x-ndjson",
"modality": "text",
"mutable": false,
"schema": {
"type": "record",
"name": "MySchema",
"fields": [
{
"name": "model",
"type": "string",
"default": "pharia"
}
]
},
"createdAt": "2021-08-25T15:04:05Z",
"updatedAt": "2021-08-25T15:04:05Z"
}
],
"page": 0,
"size": 1,
"total": 1
}
BAD REQUEST
- application/json
- Schema
- Example (auto)
Schema
messagestring
Example:
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
UNAUTHORIZED When access token is invalid.
- application/json
- Schema
- Example (auto)
Schema
messagestring
Example:
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
INTERNAL SERVER ERROR
- application/json
- Schema
- Example (auto)
Schema
messagestring
Example:
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.pharia.example.com/v1/studio/data/repositories");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear