Commit Graph

124 Commits

Author SHA1 Message Date
adamscmRH
87350e1014 prelim update to docs 2018-02-23 14:10:29 -05:00
adamscmRH
310f37dd37 clears authtoken & add PAT 2018-02-22 15:18:12 -05:00
Aaron Tan
1c2621cd60 Implement session-based and OAuth 2 authentications
Relates #21. Please see acceptance docs for feature details.

Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
2018-02-22 15:18:12 -05:00
Ryan Petrello
fe02abe630 move swagger doc metadata out of the awx repo 2018-02-09 09:45:23 -05:00
Ryan Petrello
7472026cca remove the new_in_<version> in API doc gen
see: https://github.com/ansible/awx/issues/73
2018-02-08 16:21:22 -05:00
Ryan Petrello
7ff9f0b7d1 build example Swagger request and response bodies from our API tests 2018-02-06 10:36:25 -05:00
Ryan Petrello
527594285f more Swagger template markup 2018-02-06 10:12:58 -05:00
Ryan Petrello
ac7c5f8648 clean up API markdown docs 2018-02-06 10:12:57 -05:00
Ryan Petrello
57c22c20b2 add support for building swagger/OpenAPI JSON
to build, run `make swagger`; a file named `swagger.json` will be
written to the current working directory
2018-02-06 10:12:57 -05:00
Matthew Jones
9dbcc5934e Merge remote-tracking branch 'tower/release_3.2.2' into devel 2017-12-13 12:25:47 -05:00
AlanCoding
34a8e0a9b6 Feature: saved launchtime configurations
Consolidate prompts accept/reject logic in unified models
Break out accept/reject logic for variables
Surface new promptable fields on WFJT nodes, schedules

Make schedules and workflows accurately reject variables
  that are not allowed by the prompting
  rules or the survey rules on the template

Validate against unallowed extra_data in system job schedules
Prevent schedule or WFJT node POST/PATCH with unprompted data
Move system job days validation to new mechanism
Add new psuedo-field for WFJT node credential
Add validation for node related credentials
Add related config model to unified job
Use JobLaunchConfig model for launch RBAC check

Support credential overwrite behavior with multi-creds
  change modern manual launch to use merge behavior
Refactor JobLaunchSerializer, self.instance=None
Modularize job launch view to create "modern" data
Auto-create config object with every job
Add create schedule endpoint for jobs
2017-12-08 13:38:54 -05:00
Ryan Petrello
28ce9b700e replace all Job/JT relations with a single M2M credentials relation
Includes backwards compatibility for now-deprecated .credential,
.vault_credential, and .extra_credentials

This is a building block for multi-vault implementation and Alan's saved
launch configurations (both coming soon)

see: https://github.com/ansible/awx/issues/352
see: https://github.com/ansible/awx/issues/169
2017-11-14 12:49:12 -05:00
Aaron Tan
d7eba47adb Merge pull request #456 from jangsutsr/fix-7656
[3.2.2]Remove search term separators
2017-10-10 14:38:47 -04:00
Aaron Tan
358ef76529 Remove search term separators
Relates #7656 in ansible-tower.

We have been using comma `,` and space ` ` to separate search terms in
query string `<field_name>__search=<search terms>`, however in general
we can always use `&` to achieve separation like
`<field_name>__search=<search term 1>&<field_name>__search=<search term
2>&...`. Using specific delimiters makes it impossible for search terms
to contain those delimiters, so they are better off being removed.

Signed-off-by: Aaron Tan <jangsutsr@gmail.com>
2017-10-10 14:38:47 -04:00
AlanCoding
d2e0b26287 allow deleting hosts and groups from inv src sublists 2017-10-10 14:38:47 -04:00
Shane McDonald
16ef7e1950 Remove EULA
Rather than deleting this file we are just removing the content, so that existing references to the file do not break.
2017-08-22 13:59:44 -04:00
adamscmRH
e3525fdbc3 Changes Smart Inventory Error Message 2017-07-31 09:10:10 -04:00
adamscmRH
3dcd6ef2c2 Blocks creation of Hosts, Groups, and IS for Smart Inventories
* Updated View unit tests

* Refactored Validators

* Validator Fix for Blocking
2017-07-28 16:24:09 -04:00
Matthew Jones
c7a85d9738 Mass rename from ansible_(awx|tower) -> (awx|tower) 2017-07-26 13:33:26 -04:00
Chris Meyers
ec212db83b fix api docs sample host_filter queries 2017-07-24 13:48:20 -04:00
Matthew Jones
f175fbba23 Fix up some tower-manage -> awx-manage commands 2017-07-24 09:38:36 -04:00
adamscmRH
a3d1877e6e includes inventory refresh all in docs 2017-07-21 11:57:45 -04:00
Chris Meyers
f31cec2848 Merge pull request #7153 from chrismeyersfsu/fix-6762
add API docs for host_filter
2017-07-19 11:37:38 -04:00
Chris Meyers
815732bcba add API docs for host_filter 2017-07-19 10:18:13 -04:00
Ryan Petrello
b98d384671 filter CredentialType OPTIONS *and* help text for kind requirements
see: #7115
see: #6959
2017-07-18 17:51:07 -04:00
Ryan Petrello
39525316ac prefix all /api/v1/ view descriptions with a deprecation message
additionally, fix a bug in /api/v1/credentials/ view descriptions that
causes v2 fields to display (see: #6116)
2017-06-21 16:27:07 -04:00
Wayne Witzel III
9e0d0e566d Update /update_inventory_sources endpoint documentation 2017-06-07 16:42:52 -04:00
Aaron Tan
f25391fe86 Implement named URL feature. 2017-05-31 12:09:54 -04:00
Ryan Petrello
7e64a6fd60 add "added_in_api_version" metadata to OPTIONS requests 2017-04-21 15:42:27 -04:00
Ryan Petrello
95ea370e5e add API versioning for /api/v2/ 2017-03-30 15:11:12 -04:00
AlanCoding
93034ef1d6 surface dry_run option for system jobs through the API 2017-02-07 10:37:41 -05:00
Matthew Jones
ca87c4f83b Implement logout semantics by support DELETE on authtoken 2017-02-02 16:32:09 -05:00
AlanCoding
fad19eb9c7 make help text noun plural 2017-02-02 13:38:45 -05:00
AlanCoding
047880b5db fix inconsistencies in the workflow API help text pages 2017-02-01 15:58:38 -05:00
AlanCoding
a5be524101 Elaborate on system job default 2017-01-27 08:47:39 -05:00
AlanCoding
62d2a30d70 updated WFJT launch help text 2017-01-25 10:49:31 -05:00
AlanCoding
ca704cdb5c update copy API help text for recent changes 2017-01-18 16:53:02 -05:00
AlanCoding
ba07f467ed add help text templates for remaining workflow endpoints 2017-01-18 16:53:00 -05:00
Alan Rominger
f5173a9d27 put the word granularity in double quotes 2017-01-13 15:37:23 -05:00
Matthew Jones
5f0940e411 Merge pull request #4461 from cchurch/ansi-download
Add ansi_download format for stdout
2017-01-04 14:46:16 -05:00
Matthew Jones
f9d9196270 Adding deprecation warnings
Also updating New in/Added in text
2017-01-04 14:23:43 -05:00
Chris Church
b6e2e3da70 Add new ansi_download format to download stdout and preserve ANSI escape sequences. 2016-12-15 16:03:00 -05:00
Chris Church
ea10ff8b93 Initial pass at related search fields. 2016-12-13 21:44:09 -05:00
AlanCoding
2092e67f6f docs and lazy eval for role_level filter 2016-12-08 12:28:46 -05:00
Matthew Jones
cb2d90673d Merge pull request #4223 from jangsutsr/4043_add_help_text_to_wfjt_launch_endpoint
Add help text to wfjt launch endpoint
2016-12-04 21:05:47 -05:00
Aaron Tan
7f358d893e Modify according to review feedback. 2016-12-02 14:47:38 -05:00
Aaron Tan
5a60954997 Add help text to wfjt launch endpoint. 2016-12-02 11:48:32 -05:00
Aaron Tan
84a3aeec67 Prevent multiple print of version label in api help text. 2016-12-01 21:54:20 -05:00
Matthew Jones
c6cf02a602 Merge branch 'release_3.0.3' into devel
* release_3.0.3: (55 commits)
  Revert "Revert "Add needed types for selinux change""
  Revert "Add needed types for selinux change"
  interpret backslash escapes when displaying url in welcome message
  Bump the SELinux policy version
  Add needed types for selinux change
  Update SELinux policy to allow httpd_t to execute files in lib_t and var_lib_t
  Bumping changelog for 3.0.3
  Update rax.py inventory
  Revert "filter internal User.admin_roles from the /roles API list view"
  fix spelling of disassociated
  Resolves 404 when assigning resources/users to organizations in card view. Sidesteps a bug in the Refresh() utility, where pagination calculations are not made against filtered results.
  Sync azure changes to Tower virtual environment
  Add regions here as well.
  Also bump boto for new regions, per ryansb.
  More regions!
  Revert "bump shade version"
  bump shade version
  Hack copying of job_template.related.survey_spec into ui job copy flow, resolves #3737
  Revert "bump shade version"
  bump shade version
  ...
2016-11-01 11:49:28 -04:00
AlanCoding
6e228248c1 remove fail_on_job_failure from the workflow status PR 2016-10-27 12:58:27 -04:00