text
stringlengths
0
1.82k
[1985.46 --> 1986.40] there between
[1986.40 --> 1986.96] what we were
[1986.96 --> 1987.58] doing and
[1987.58 --> 1988.26] between the
[1988.26 --> 1989.36] specs that
[1989.36 --> 1989.76] Swagger,
[1990.00 --> 1990.90] Swagger spec,
[1991.02 --> 1991.44] whatever the
[1991.44 --> 1991.94] spec version
[1991.94 --> 1992.50] was that we
[1992.50 --> 1992.90] were using.
[1993.88 --> 1994.38] Now,
[1995.22 --> 1996.48] with query
[1996.48 --> 1997.16] params and
[1997.16 --> 1999.08] filtering features
[1999.08 --> 1999.68] of an API,
[2000.06 --> 2000.62] is that what the
[2000.62 --> 2001.80] views does?
[2001.80 --> 2002.72] Is that like
[2002.72 --> 2003.54] if I have
[2003.54 --> 2003.98] different
[2003.98 --> 2006.02] filtering criteria,
[2006.28 --> 2006.70] I can use
[2006.70 --> 2007.60] different views
[2007.60 --> 2009.04] to represent
[2009.04 --> 2009.46] that?
[2009.56 --> 2009.94] Is that what
[2009.94 --> 2010.32] it is?
[2010.88 --> 2011.02] Yeah.
[2011.16 --> 2011.40] I mean,
[2011.44 --> 2011.60] yeah,
[2011.62 --> 2012.18] that's the
[2012.18 --> 2012.42] idea.
[2012.64 --> 2012.82] So,
[2013.10 --> 2013.66] you know,
[2013.82 --> 2014.30] the idea is
[2014.30 --> 2015.72] that a
[2015.72 --> 2016.52] single resource
[2016.52 --> 2017.40] may be
[2017.40 --> 2017.88] represented
[2017.88 --> 2018.26] in different
[2018.26 --> 2018.62] ways,
[2018.74 --> 2018.92] right?
[2018.96 --> 2019.22] You may
[2019.22 --> 2020.68] have an
[2020.68 --> 2021.18] index view,
[2021.26 --> 2021.68] for example,
[2021.68 --> 2022.38] that only has
[2022.38 --> 2023.12] a few fields
[2023.12 --> 2023.82] and you may
[2023.82 --> 2024.52] have a detailed
[2024.52 --> 2025.26] view that has
[2025.26 --> 2025.96] other fields
[2025.96 --> 2026.42] and you may
[2026.42 --> 2026.84] have another
[2026.84 --> 2027.34] view that is
[2027.34 --> 2027.88] specialized in
[2027.88 --> 2028.16] some other
[2028.16 --> 2028.42] way.
[2028.42 --> 2029.60] And so,
[2029.70 --> 2030.20] the idea is
[2030.20 --> 2030.58] that you
[2030.58 --> 2031.16] shouldn't have
[2031.16 --> 2032.60] to kind of
[2032.60 --> 2033.36] redefine a
[2033.36 --> 2034.06] different media
[2034.06 --> 2034.52] type every
[2034.52 --> 2034.84] time.
[2035.10 --> 2035.36] So,
[2035.44 --> 2036.00] you define
[2036.00 --> 2036.46] your media
[2036.46 --> 2037.18] type once,
[2037.74 --> 2038.42] you list all
[2038.42 --> 2038.84] the fields of
[2038.84 --> 2039.16] the media
[2039.16 --> 2039.48] type,
[2039.60 --> 2040.30] and then you
[2040.30 --> 2041.16] define views,
[2041.46 --> 2042.54] different ways
[2042.54 --> 2043.36] of representing
[2043.36 --> 2043.92] that media
[2043.92 --> 2044.22] type.
[2044.48 --> 2044.88] And each
[2044.88 --> 2046.38] view can
[2046.38 --> 2048.22] define arbitrary
[2048.22 --> 2049.94] fields that
[2049.94 --> 2050.46] were defined
[2050.46 --> 2050.82] on the media
[2050.82 --> 2051.08] type.
[2051.26 --> 2051.44] And so,
[2051.86 --> 2053.38] and then how
[2053.38 --> 2054.80] you produce
[2054.80 --> 2055.40] those views
[2055.40 --> 2055.92] from the
[2055.92 --> 2056.68] request is
[2056.68 --> 2057.24] really up to
[2057.24 --> 2057.84] you.
[2058.42 --> 2059.12] So,
[2059.22 --> 2059.42] if you
[2059.42 --> 2059.90] decide that