Bug 1574581

Summary: The foreman templates import API is broken : Not Found
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: Templates PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4CC: mhulan, oprazak
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-07 12:53:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jitendra Yejare 2018-05-03 15:18:45 UTC
Description of problem:
The foreman-templates import API is broken and its throwing 'not found' error.

# curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X POST -u admin:changeme https://server_fqdn.com/api/v2/template/import
{"status":404,"error":"Not Found"}

Version-Release number of selected component (if applicable):
Satellite 6.4 snap 1

How reproducible:
Always

Steps to Reproduce:
1. Attempt to import the foreman-templates from a git repository using API path
# curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X POST -u admin:changeme https://server_fqdn.com/api/v2/template/import

Actual results:
The API throws error:
{"status":404,"error":"Not Found"}

Expected results:
The foreman-templates should be imported thought API call

Additional info:

Comment 2 Jitendra Yejare 2018-05-07 12:53:11 UTC
Closing this as it should be templates in URL and not template.