Welcome to the Linux Foundation Forum!

LFEL1011 - Confused by Chapter 3 Quiz Question 6

Hi, the OpenAPI Fundamentals Course LFEL1011 Chapter 3 Knowledge Check Quiz Question 6 asks the following:

Which of the following are valid Parameters Object types? (choose multiple)

Correct answers:

  • 'in'
  • 'query'

Incorrect answers:

  • 'body'
  • 'text'

I just don't understand the question, or where this was specifically referenced in Chapter 3. Looking at the specification for parameter objects left me even more confused, as the parameter object contains the field "in" which has a possible value of "query".

Thank you

Answers

  • arianehamm
    arianehamm Posts: 76

    Hi @jryan14ify ,

    Thank you for the question. The answer is referenced in the section: HTTP, APIs, and OpenAPI on the page titled Mapping OpenAPI to HTTP.

    A Parameters Object describes where a parameter appears in an HTTP request. Each Operation Object references Parameters Objects that reflect the supported HTTP parameter locations, such as query parameters, HTTP headers, cookies, and path placeholders within the URL. The 'in' field is used to specify this location, and 'query' is one of the valid locations defined by OpenAPI.

    Hopefully this helps! 

    Ariane
    Linux Foundation Education

Categories

Upcoming Training