manosim / manosim/django-rest-framework-docs

Whether to support APIView ?

Open
#80 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
641
Forks
178
PR merge metrics
No merged PRs in 30d

Description

f I use APIView to design API, what should I do

eg :

`url(r'^alipay.pay.unified.order/$', views.AlipayPayUnifiedOrderView.as_view(), name='alipay.pay.unified.order'),
`

```
class AlipayPayUnifiedOrderView(BaseOpenGateWayRequestView):
request_params = ('merchant_code', 'total_amount', 'out_trade_no', 'subject', 'card_code')

def get(self, request, format=None):
"""
"""
return resp_data(pay_api.alipay_pay_unified_order(self.get_request_params(request, self.request_params)))
```

Contributor guide

Open the contributing guide

Research direction

Start with the APIView example in the issue, including the URL entry point and AlipayPayUnifiedOrderView class. Determine what APIView support should cover and how it should be documented; the work is done when the supported behavior and usage are clearly recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.