/ apis / node / peer.yaml
peer.yaml
 1  get:
 2    operationId: getPeer
 3    tags:
 4      - Node
 5    summary: Get peer
 6    description: Retrieves data about the given peer
 7    parameters:
 8      - name: peer_id
 9        in: path
10        required: true
11        schema:
12          $ref: "../../beacon-node-oapi.yaml#/components/schemas/PeerId"
13    responses:
14      "200":
15        description: Request successful
16        content:
17          application/json:
18            schema:
19              title: GetPeerResponse
20              type: object
21              properties:
22                data:
23                  $ref: '../../beacon-node-oapi.yaml#/components/schemas/Peer'
24      "400":
25        description: "The peer ID supplied could not be parsed"
26        content:
27          application/json:
28            schema:
29              allOf:
30                - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
31                - example:
32                    code: 400
33                    message: "Invalid peer ID: localhost"
34      "404":
35        description: "Peer not found"
36        content:
37          application/json:
38            schema:
39              allOf:
40                - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
41                - example:
42                    code: 404
43                    message: "Peer not found"
44      "500":
45        $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'