DPCS-team / DPCS

Data Powered Crash Solver
7 stars 17 forks source link

Server/Ticket78/Fix interface api calls on the server side. #79

Open bdfhjk opened 8 years ago

bdfhjk commented 8 years ago

Currently, the API scheme on the server is non consistent with apiary documentation.

Please fix the schema of following calls to be compatible with apiary, that interface will be working well with them.

That may involve changing the expected JSON format, outputted JSON format and a little of internal server logic.

List of calls to be fixed (or checked) in the scope of this ticket:

    url(r'^crash-reports/$', views.crash_report_list) 
    url(r'^crash-reports/(?P<pk>[0-9]+)/$', views.crash_report_detail),

    url(r'^crash-groups/$', views.crash_group_list),
    url(r'^crash-groups/(?P<pk>[0-9]+)/$', views.crash_group_detail),

    url(r'^solutions/(?P<pk>[0-9]+)/$', views.solution_detail),
    url(r'^solutions/$', views.solution_list),

Both include request and answer. In case of questions how to implement any of it, contact @ignacy130

Please remove these urls as they are not following apiary to avoid misunderstandings:

    url(r'^crash-groups/add/$', views.crash_group_add),
    url(r'^crash-reports/add/$', views.crash_report_add),

Deadline: Before 07.04 20:00

patrikos94 commented 8 years ago

Please take a look at: https://github.com/DPCS-team/DPCS/pull/80

bdfhjk commented 8 years ago

Please contact frequently @ignacy130

bdfhjk commented 8 years ago

http://docs.dpcs.apiary.io/