Changeset 1075 in main


Ignore:
Timestamp:
04/30/12 11:59:01 (7 years ago)
Author:
pcosquer
Message:

api: fix docstring

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/devel/http-api.rst

    r702 r1075  
    175175    :type: POST 
    176176    :login required: no 
    177     :implemented by: :func:`plmapp.api.api_login` 
     177    :implemented by: :func:`plmapp.views.api.api_login` 
    178178 
    179179    :param string username: the username of the user 
     
    203203    :type: GET 
    204204    :login required: no 
    205     :implemented by: :func:`plmapp.api.test_login` 
     205    :implemented by: :func:`plmapp.views.api.test_login` 
    206206 
    207207.. py:function:: types 
     
    212212    :type: GET 
    213213    :login required: yes 
    214     :implemented by: :func:`plmapp.api.get_all_types` 
     214    :implemented by: :func:`plmapp.views.api.get_all_types` 
    215215 
    216216    :returned fields: 
     
    228228    :type: GET 
    229229    :login required: yes 
    230     :implemented by: :func:`plmapp.api.get_all_parts` 
     230    :implemented by: :func:`plmapp.views.api.get_all_parts` 
    231231 
    232232    :returned fields: 
     
    241241    :type: GET 
    242242    :login required: yes 
    243     :implemented by: :func:`plmapp.api.get_all_docs` 
     243    :implemented by: :func:`plmapp.views.api.get_all_docs` 
    244244 
    245245    :returned fields: 
     
    264264    :type: GET 
    265265    :login required: yes 
    266     :implemented by: :func:`plmapp.api.search` 
     266    :implemented by: :func:`plmapp.views.api.search` 
    267267     
    268268 
     
    284284    :type: POST 
    285285    :login required: yes 
    286     :implemented by: :func:`plmapp.api.create` 
     286    :implemented by: :func:`plmapp.views.api.create` 
    287287    :post params: 
    288288        type 
     
    302302    :type: GET 
    303303    :login required: yes 
    304     :implemented by: :func:`plmapp.api.get_search_fields` 
     304    :implemented by: :func:`plmapp.views.api.get_search_fields` 
    305305    :returned fields: 
    306306        fields 
     
    315315    :type: GET 
    316316    :login required: yes 
    317     :implemented by: :func:`plmapp.api.get_creation_fields` 
     317    :implemented by: :func:`plmapp.views.api.get_creation_fields` 
    318318    :returned fields: 
    319319        fields 
     
    337337    :type: GET 
    338338    :login required: yes 
    339     :implemented by: :func:`plmapp.api.get_files` 
     339    :implemented by: :func:`plmapp.views.api.get_files` 
    340340    :returned fields: 
    341341        files 
     
    349349    :type: POST 
    350350    :login required: yes 
    351     :implemented by: :func:`plmapp.api.revise` 
     351    :implemented by: :func:`plmapp.views.api.revise` 
    352352    :post params: 
    353353        revision 
     
    366366    :type: GET 
    367367    :login required: yes 
    368     :implemented by: :func:`plmapp.api.next_revision` 
     368    :implemented by: :func:`plmapp.views.api.next_revision` 
    369369    :returned fields: 
    370370        revision 
     
    378378    :type: GET 
    379379    :login required: yes 
    380     :implemented by: :func:`plmapp.api.is_revisable` 
     380    :implemented by: :func:`plmapp.views.api.is_revisable` 
    381381    :returned fields: 
    382382        revisable 
     
    390390    :type: GET 
    391391    :login required: yes 
    392     :implemented by: :func:`plmapp.api.attach_to_part` 
     392    :implemented by: :func:`plmapp.views.api.attach_to_part` 
    393393    :returned fields: None 
    394394 
     
    404404    :type: POST 
    405405    :login required: yes 
    406     :implemented by: :func:`plmapp.api.add_file` 
     406    :implemented by: :func:`plmapp.views.api.add_file` 
    407407    :post param: filename 
    408408    :returned fields: 
     
    424424    :type: GET 
    425425    :login required: yes 
    426     :implemented by: :func:`plmapp.api.is_locked` 
     426    :implemented by: :func:`plmapp.views.api.is_locked` 
    427427    :returned fields: 
    428428        locked 
     
    437437    :type: GET 
    438438    :login required: yes 
    439     :implemented by: :func:`plmapp.api.check_out` 
     439    :implemented by: :func:`plmapp.views.api.check_out` 
    440440    :returned fields: None 
    441441 
     
    447447    :type: GET 
    448448    :login required: yes 
    449     :implemented by: :func:`plmapp.api.unlock` 
     449    :implemented by: :func:`plmapp.views.api.unlock` 
    450450    :returned fields: None 
    451451 
     
    461461    :type: POST 
    462462    :login required: yes 
    463     :implemented by: :func:`plmapp.api.check_in` 
     463    :implemented by: :func:`plmapp.views.api.check_in` 
    464464    :post param: filename 
    465465    :returned fields: None 
     
    473473    :type: POST 
    474474    :login required: yes 
    475     :implemented by: :func:`plmapp.api.add_thumbnail` 
     475    :implemented by: :func:`plmapp.views.api.add_thumbnail` 
    476476    :post param: filename 
    477477    :returned fields: None 
  • trunk/openPLM/plmapp/views/api.py

    r952 r1075  
    6666    
    6767    json_func = json_view(func, API_VERSION) 
     68    @functools.wraps(func) 
    6869    @csrf_exempt 
    6970    @secure_required 
    7071    @api_login_required 
    71     @functools.wraps(func) 
    7272    def wrapper(request, *args, **kwargs): 
    7373        if request.META["HTTP_USER_AGENT"] != "openplm": 
Note: See TracChangeset for help on using the changeset viewer.