-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(REST): RHINENG-2752 add profiles endpoint spec nested under secu…
…rity_guides
- Loading branch information
1 parent
ece4758
commit 2efe0e0
Showing
2 changed files
with
239 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
require './spec/api/v2/schemas/util' | ||
|
||
module Api | ||
module V2 | ||
module Schemas | ||
module Profiles | ||
extend Api::V2::Schemas::Util | ||
|
||
PROFILE = { | ||
type: :object, | ||
required: %w[ref_id title], | ||
properties: { | ||
ref_id: { | ||
type: :string, | ||
examples: ['xccdf_org.ssgproject.content_profile_pci-dss'], | ||
description: 'Identificator for Profile' | ||
}, | ||
title: { | ||
type: :string, | ||
examples: ['CIS Red Hat Enterprise Linux 7 Benchmark'], | ||
description: 'Brief description of the Profile content' | ||
}, | ||
description: { | ||
type: :string, | ||
examples: ['This profile defines a baseline that aligns to the Center for Internet Security®' \ | ||
'Red Hat Enterprise Linux 7 Benchmark™, v2.2.0, released 12-27-2017.'], | ||
description: 'Longer description of the Profile content' | ||
} | ||
} | ||
}.freeze | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters