workforce-data-initiative / programs-registry

Machine readable, public directory of programs and services offered by eligible training providers
https://docs.brighthive.io
Apache License 2.0
1 stars 0 forks source link

Feature/views #6

Closed gitgik closed 6 years ago

gitgik commented 6 years ago

What does this PR do?

It defines a test suite for the various API views. It also defines the views responsible for handling API requests.

How can this be manually tested?

On feature/views branch, run the tests as follows

$ python manage.py test

You can also run the server and test out the various endpoints on Postman

Relevant pivotal tracker stories?

152041149 152041510

gitgik commented 6 years ago

@NdagiStanley I've made a fix and therein addressed the issues. You can now manually test the API using form-data, x-www-form-encoded and of course not forgetting json data.