Method: Mushy::Post.details

Defined in:
lib/mushy/fluxs/post.rb

.detailsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/mushy/fluxs/post.rb', line 9

def self.details
  super.merge({
                examples: {
                  'Successful Call' => {
                    description: "This will send a #{operation.upcase} to https://www.google.com.",
                    config: { url: 'https://www.google.com' },
                    result: {
                      status: 400,
                      url: 'https://www.google.com',
                      time: 0.12829399993643165,
                      reason_phrase: 'OK',
                      headers: {
                        'access-control-allow-origin': '*',
                        'content-type': 'application/json; charset=utf-8',
                        'content-length': '193',
                        'keep-alive': 'timeout=5'
                      },
                      body: '{}'
                    }
                  }
                }
              })
end