Red Hat Enterprise Linux 8 Rating API

The rating API from Red Hat Enterprise Linux 8 — 4 operation(s) for rating.

GitHub OpenAPI

Operations 5

GET /api/insights/v1/rating/ Rating list #
POST /api/insights/v1/rating/ Rating create #
GET /api/insights/v1/rating/{rule}/ Retrieve the ratings for a single rule #
GET /api/insights/v1/rating/all_ratings/ Rating all ratings list #
GET /api/insights/v1/rating/stats/ Rating stats list #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/red-hat-enterprise-linux-8:red-hat-enterprise-linux-8-rating-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

red-hat-enterprise-linux-8-rating-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Insights Advisor Rating API
  version: 1.0.1
  description: The API of the Advisor project in Insights
servers:
- url: https://console.redhat.com/
  description: The API of the Advisor project in Insights
tags:
- name: Rating
paths:
  /api/insights/v1/rating/:
    get:
      operationId: rating_list
      description: 'List all rules rated by the current user


        Only the current user''s ratings are listed here.'
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - Rating
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRuleRatingList'
          description: ''
      summary: Rating list
      x-summary-source: derived
    post:
      operationId: rating_create
      description: 'Add or update a rating for a rule, by rule ID.


        Return the new rating. Any previous rating for this rule by this

        user is amended to the current value. This does not attempt to delete

        a rating by this user of this rule if the rating is zero.'
      tags:
      - Rating
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RuleRating'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/RuleRating'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/RuleRating'
        required: true
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleRating'
          description: ''
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleRating'
          description: ''
      summary: Rating create
      x-summary-source: derived
  /api/insights/v1/rating/{rule}/:
    get:
      operationId: rating_retrieve
      description: Retrieve the ratings for a single rule, by Insights Rule ID
      summary: Retrieve the ratings for a single rule
      parameters:
      - in: path
        name: rule
        schema:
          type: string
          description: Rule ID from Insights
        required: true
      tags:
      - Rating
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleRating'
          description: ''
  /api/insights/v1/rating/all_ratings/:
    get:
      operationId: rating_all_ratings_list
      description: 'Show all ratings.


        Available only to internal users.'
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - Rating
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedAllRuleRatingsList'
          description: ''
      summary: Rating all ratings list
      x-summary-source: derived
  /api/insights/v1/rating/stats/:
    get:
      operationId: rating_stats_list
      description: 'Summarise the ratings for a rule.


        This summarises the statistics for each rule. Available only to

        internal users.'
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - Rating
      security:
      - x-rh-identity: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedRuleRatingStatsList'
          description: ''
      summary: Rating stats list
      x-summary-source: derived
components:
  schemas:
    RuleRatingStats:
      type: object
      description: Output of statistics view of rule ratings - rule ID and totals of ratings.
      properties:
        rule:
          type: string
        total_ratings:
          type: integer
        total_positive:
          type: integer
        total_negative:
          type: integer
      required:
      - rule
      - total_negative
      - total_positive
      - total_ratings
    PaginatedRuleRatingStatsList:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              example: 169
          required:
          - count
        links:
          type: object
          properties:
            first:
              type:
              - string
              - 'null'
              format: uri
            previous:
              type:
              - string
              - 'null'
              format: uri
            next:
              type:
              - string
              - 'null'
              format: uri
            last:
              type:
              - string
              - 'null'
              format: uri
        data:
          type: array
          items:
            $ref: '#/components/schemas/RuleRatingStats'
    RuleRating:
      type: object
      description: 'Rule ratings list the rating (-1, 0 or +1) for one or more rules.  The

        rule is listed by its Insights Rule ID.'
      properties:
        rule:
          type: string
          description: Rule ID from Insights
        rating:
          enum:
          - -1
          - 0
          - 1
          type: integer
          description: '* `-1` - Dislike

            * `0` - Neutral

            * `1` - Like'
          x-spec-enum-id: 77fd471e36283637
          minimum: -32768
          maximum: 32767
      required:
      - rating
      - rule
    PaginatedRuleRatingList:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              example: 169
          required:
          - count
        links:
          type: object
          properties:
            first:
              type:
              - string
              - 'null'
              format: uri
            previous:
              type:
              - string
              - 'null'
              format: uri
            next:
              type:
              - string
              - 'null'
              format: uri
            last:
              type:
              - string
              - 'null'
              format: uri
        data:
          type: array
          items:
            $ref: '#/components/schemas/RuleRating'
    AllRuleRatings:
      type: object
      description: This is only available to internal users and lists ratings from all users.
      properties:
        rule:
          type: string
          description: Rule ID from Insights
        rating:
          enum:
          - -1
          - 0
          - 1
          type: integer
          description: '* `-1` - Dislike

            * `0` - Neutral

            * `1` - Like'
          x-spec-enum-id: 77fd471e36283637
          minimum: -32768
          maximum: 32767
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        rated_by:
          type: string
          default: ''
          description: The username that rated this rule
          maxLength: 255
        account:
          type:
          - string
          - 'null'
          maxLength: 10
        org_id:
          type: string
          maxLength: 50
      required:
      - created_at
      - org_id
      - rating
      - rule
      - updated_at
    PaginatedAllRuleRatingsList:
      type: object
      properties:
        meta:
          type: object
          properties:
            count:
              type: integer
              example: 169
          required:
          - count
        links:
          type: object
          properties:
            first:
              type:
              - string
              - 'null'
              format: uri
            previous:
              type:
              - string
              - 'null'
              format: uri
            next:
              type:
              - string
              - 'null'
              format: uri
            last:
              type:
              - string
              - 'null'
              format: uri
        data:
          type: array
          items:
            $ref: '#/components/schemas/AllRuleRatings'
  securitySchemes:
    x-rh-identity:
      type: apiKey
      in: header
      name: x-rh-identity