EC-SEAL / interface-specs

Open API specifications
1 stars 4 forks source link

Session dataStore management API: Update #4

Open faragom opened 3 years ago

faragom commented 3 years ago

Due to the issue described here, this new issue updates the specification of the API described here and formally here. and the original Session Manager API described here

We provide only the updated parts, for clarity. The full api can be seen on the Interface Specs

Updates to the API:


*  The function of the data store to retrieve a `storeEntry` has been changed to send the id of the `storeEntry` we want on a body json object of parameters, that only needs a value on the `id` field. `sessionId` is still passed on the query string. 
```yaml
  /sm/new/get:
    post:
      tags:
        - new-api-rest
      summary: >-
        returns in the extraData  the object (JSON strigified) for the given
        session id and object id, or if not object id, the array of all objects
        for the given sessionID
      operationId: getSessionDataUsingPOST_1
      consumes:
        - application/json
      produces:
        - application/json
      parameters:
        - in: body
          name: requestParameters
          description: The request params object, with json object, with the 'id' filed filled in with the id of the storeEntry to retrieve
          required: false
          schema:
            $ref: '#/definitions/requestParameters'
        - name: sessionId
          in: query
          description: sessionId
          required: true
          type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/SessionMngrResponse'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
      deprecated: false
  requestParameters:
    type: object
    properties:
      data:
        type: string
      id:
        type: string
      sessionId:
        type: string
      type:
        type: string
    title: requestParameters

This is the diff of the update, for a more accurate reference. Also this commit, as i forgot to add the requestParameters object definition

endimion commented 3 years ago

SM updated with changes to version endimion13/seal-sm:0.0.2i