summaryrefslogtreecommitdiff
path: root/goodgame/src/docs/unit.yaml
blob: 908d0c7a6badebf2c3d0a7318d95ffc0c23bf2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
paths:
  /:
    post:
      tags:
        - Units
      summary: creates a new set of units
      produces:
      - application/json
      parameters:
      - in: body
        name: generate units
        description: It generates a random set of users and saves them to the DB
        required: false
        schema:
          type: "object"
          properties:
            amount:
              type: integer
      responses:
        201:
          description: An object with the units created
        422:
          description: An object with input errors
        400:
          description: An object with processing errors