mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Add Job API model
This commit is contained in:
parent
4fe558392a
commit
54f9dd5e98
@ -1,5 +1,6 @@
|
||||
import Config from './models/Config';
|
||||
import InstanceGroups from './models/InstanceGroups';
|
||||
import Jobs from './models/Jobs';
|
||||
import Me from './models/Me';
|
||||
import Organizations from './models/Organizations';
|
||||
import Root from './models/Root';
|
||||
@ -9,6 +10,7 @@ import Users from './models/Users';
|
||||
|
||||
const ConfigAPI = new Config();
|
||||
const InstanceGroupsAPI = new InstanceGroups();
|
||||
const JobsAPI = new Jobs();
|
||||
const MeAPI = new Me();
|
||||
const OrganizationsAPI = new Organizations();
|
||||
const RootAPI = new Root();
|
||||
@ -19,6 +21,7 @@ const UsersAPI = new Users();
|
||||
export {
|
||||
ConfigAPI,
|
||||
InstanceGroupsAPI,
|
||||
JobsAPI,
|
||||
MeAPI,
|
||||
OrganizationsAPI,
|
||||
RootAPI,
|
||||
|
10
src/api/models/Jobs.js
Normal file
10
src/api/models/Jobs.js
Normal file
@ -0,0 +1,10 @@
|
||||
import Base from '../Base';
|
||||
|
||||
class Jobs extends Base {
|
||||
constructor (http) {
|
||||
super(http);
|
||||
this.baseUrl = '/api/v2/jobs/';
|
||||
}
|
||||
}
|
||||
|
||||
export default Jobs;
|
Loading…
Reference in New Issue
Block a user