示例#1
0
文件: meta.py 项目: pombredanne/rucio
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
示例#2
0
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
示例#3
0
文件: meta.py 项目: nikmagini/rucio
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success

        HTTP Error:
            406 Not Acceptable
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
示例#4
0
文件: meta.py 项目: vokac/rucio
    def get(self):
        """
        List all data identifier keys.

        .. :quickref: Meta; List all keys.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 406: Not Acceptable.
        :returns: List of all DID keys.
        """
        return jsonify(list_keys())
示例#5
0
    def get(self):
        """
        List all data identifier keys.

        .. :quickref: Meta; List all keys.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 500: Internal Error.
        :returns: List of all DID keys.
        """
        return Response(dumps(list_keys()), content_type="application/json")
示例#6
0
文件: meta.py 项目: rak108/rucio
 def get(self):
     """
     ---
     summary: List all data identifier keys.
     tags:
         - Meta
     responses:
       200:
         description: OK
         content:
           application/json:
             schema:
               type: array
               descripton: List of all DID keys.
               items:
                 type: string
                 description: Data Itentifier key
       401:
         description: Invalid Auth Token
       406:
         description: Not acceptable
     """
     return jsonify(list_keys())