예제 #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())