1
0
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:
Marliana Lara 2019-06-12 16:52:42 -04:00
parent 4fe558392a
commit 54f9dd5e98
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
2 changed files with 13 additions and 0 deletions

View File

@ -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
View 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;