Skip to content

Can't get the APIView HTML form to show up #9036

Discussion options

You must be logged in to vote

If you are building an API, then this should be expected. You have likely navigated to the DRF endpoint which is giving you a nice view of the contents of your employee model, serializer and Class View code for the GET endpoint specifically. What you would want to do is set up your react side of things to consume the contents of the APIView you just made. Use a tool like Axios or Fetch and hit the endpoint you have here and it will return to you the employees you have in your Employee model. Which it also. looks like you may want to seed your DB with some employees.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RonyKordahi
Comment options

Answer selected by auvipy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants