You are required to dynamically build a form using a JSON schema returned from an API.
The api we'll be using is below:
https://levelup-assessment-backend-ddmwdsdlta.now.sh/api/
You'll find the API documentation here
Using this API you'll be able to GET the form input fields along with their types, and use this data to build your form!
Find the detailed instruction below:
- Use the JSON schema returned from
/getFormSchema
to DYNAMICALLY build the form using JS DOM Manipulation - Style it using CSS
- Push your code (solution) to a PUBLIC GitHub repo
- Fill the form with your data (and your newly created repo)
- Have the form you built submit to the following endpoint of the API by sending its value as a JSON NOT a FormData object:
/submission
- If you are successful at building the form, you will have a checkbox that marks your submission as the final one, make sure to check it at your latest attempt, as we will not process any submission that is not marked final.
Then you're done!
Important: Static embedding of form inputs into the HTML based on the fetched JSON schema, is not allowed and will be discarded.
Ⓒ Omar Doma 2018