Commit c8802a3a authored by Sylvain Renault's avatar Sylvain Renault
Browse files

New admin operation "getVersion" to receive the current version number of the API.

parent 8b7f9327
Loading
Loading
Loading
Loading
+15 −4
Original line number Original line Diff line number Diff line
@@ -33,11 +33,22 @@ paths:
          description: OK, world storage alive.
          description: OK, world storage alive.
  /admin:
  /admin:
    get:
    get:
      summary: Get the version of the API.
      summary: Get the state of the server.
      operationId: getAdmin
      responses:
        '200':
          description: OK, world storage server ready.
          content:
            text/plain:
              schema: 
                type: string      
  /version:
    get:
      summary: Get the version of the ARF API.
      operationId: getVersion
      operationId: getVersion
      responses:
      responses:
        '200':
        '200':
          description: OK, world storage ready.
          description: Current version.
          content:
          content:
            text/plain:
            text/plain:
              schema: 
              schema: 
@@ -505,7 +516,7 @@ components:
        linkSize:
        linkSize:
          $ref: '#/components/schemas/Size'
          $ref: '#/components/schemas/Size'
        keyvalueTags:
        keyvalueTags:
          description: List of additional parameters to be stored
          description: List of additional parameters to be stored.
          $ref: '#/components/schemas/KeyvalueTagList'
          $ref: '#/components/schemas/KeyvalueTagList'
          example: { "LinkType" : ["Hierarchy"]}    
          example: { "LinkType" : ["Hierarchy"]}    


@@ -589,7 +600,7 @@ components:
        example: [1,5,0]   
        example: [1,5,0]   


    KeyvalueTagList:   
    KeyvalueTagList:   
        description: List of additional parameters to be stored with the trackable.
        description: List of additional parameters to be stored with the object.
        type: object
        type: object
        additionalProperties:
        additionalProperties:
            type: array
            type: array