Skip to content

Commit

Permalink
Drop POST /api/jobs
Browse files Browse the repository at this point in the history
This is a remnant from the old routes setup that would automatically
create thr CRUD methods ... much better to just drop this.
  • Loading branch information
mvdbeek committed Nov 21, 2023
1 parent 05edd51 commit c0d43cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
34 changes: 0 additions & 34 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -914,11 +914,6 @@ export interface paths {
"/api/jobs": {
/** Index */
get: operations["index_api_jobs_get"];
/**
* Not implemented.
* @description See the create method in tools.py in order to submit a job.
*/
post: operations["create_job_api_jobs_post"];
};
"/api/jobs/search": {
/**
Expand Down Expand Up @@ -15230,35 +15225,6 @@ export interface operations {
};
};
};
create_job_api_jobs_post: {
/**
* Not implemented.
* @description See the create method in tools.py in order to submit a job.
*/
parameters: {
query: {
kwd: Record<string, never>;
};
/** @description The user ID that will be used to effectively make this API call. Only admins and designated users can make API calls on behalf of other users. */
header?: {
"run-as"?: string;
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": Record<string, never>;
};
};
/** @description Validation Error */
422: {
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
search_jobs_api_jobs_search_post: {
/**
* Return jobs for current user
Expand Down
14 changes: 0 additions & 14 deletions lib/galaxy/webapps/galaxy/api/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from fastapi import (
Body,
Depends,
HTTPException,
Path,
Query,
)
Expand Down Expand Up @@ -241,19 +240,6 @@ def index(
)
return self.service.index(trans, payload)

@router.post(
"/api/jobs",
name="create_job",
summary="Not implemented.",
)
def create(
self,
trans: ProvidesUserContext = DependsOnTrans,
**kwd,
):
"""See the create method in tools.py in order to submit a job."""
raise HTTPException(status_code=501, detail="Please POST to /api/tools instead.")

@router.get(
"/api/jobs/{job_id}/common_problems",
name="check_common_problems",
Expand Down

0 comments on commit c0d43cf

Please sign in to comment.