-
Notifications
You must be signed in to change notification settings - Fork 28
API endpoints for Maven projects
Marco Micera edited this page Nov 23, 2020
·
46 revisions
Take a look at the documentation to see how to launch the REST server.
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg} |
GET |
— | — |
|
[
{
"id": bigint,
"package_name": text,
"forge": text,
"project_name": text,
"repository": text,
"created_at": timestamp,
"version": text
}
]
|
— |
✅ Missing: tests |
/mvn/packages/{pkg}/versions |
GET |
— |
limit : integer , offset : integer
|
|
[
{
"id": bigint,
"package_id": bigint,
"version": text,
"cg_generator": text,
"created_at": timestamp,
"metadata": jsonb
}
]
|
— |
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver} |
GET |
— |
limit : integer , offset : integer
|
|
[
{
"id": bigint,
"package_id": bigint,
"version": text,
"cg_generator": text,
"created_at": timestamp,
"metadata": jsonb
}
]
|
— |
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/metadata |
GET |
— |
limit : integer , offset : integer
|
|
[
{
"package_name": text,
"version": text,
"metadata": jsonb
}
]
|
— |
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/callgraph |
GET |
— |
limit : integer , offset : integer
|
|
[
{
"source_id": bigint,
"target_id": bigint
}
]
|
Could be retrieved directly from graph DB |
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/deps |
GET |
— |
limit : integer , offset : integer
|
|
dependencies:* |
— |
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/modules |
GET |
— |
limit : integer , offset : integer
|
|
modules:* |
— |
🐞 Unsupported encoded URI |
/mvn/packages/{pkg}/{pkg_ver}/modules/{namespace}/metadata |
GET |
— |
limit : integer , offset : integer
|
|
modules:metadata |
— |
🐞 Unsupported encoded URI |
/mvn/packages/{pkg}/{pkg_ver}/modules/{namespace}/files |
GET |
— |
limit : integer , offset : integer
|
|
files:* |
— |
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅:warning: Not tested due to missing data in KB. Also Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/binary-modules |
GET |
— |
limit : integer , offset : integer
|
|
binary_modules:* |
— |
✅:warning: Not tested due to missing data in KB. Also Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/binary-modules/{binary}/metadata |
GET |
— |
limit : integer , offset : integer
|
|
binary_modules:metadata |
— |
✅:warning: Not tested due to missing data in KB. Also Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/binary-modules/{binary}/files |
GET |
— |
limit : integer , offset : integer
|
|
files:* |
— |
Callable ID = module ID (package version) + FASTEN URI + other
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/callables |
GET |
— |
limit : integer , offset : integer
|
|
callables:* |
Retrievably directly from graph DB, one-line query. |
🐞 Unsupported encoded URI |
/mvn/packages/{pkg}/{pkg_ver}/{fasten_uri}/metadata |
GET |
— |
limit : integer , offset : integer
|
|
callables:metadata |
All metadata. |
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/edges |
GET |
— |
limit : integer , offset : integer
|
|
edges:* |
Edge IDs not stored in graph DB, hence SQL query is needed. |
Done | Resource | Method | Req. body | Query params | Response codes | Response body | Notes |
---|---|---|---|---|---|---|---|
✅ Missing: tests |
/mvn/packages/{pkg}/{pkg_ver}/files |
GET |
— |
limit : integer , offset : integer
|
|
files:* |
— |