Closed ana-nova closed 3 days ago
As a Developer
I want to check the contrast ratio via an API when colors are added or edited
in order to ensure accessibility compliance.
https://github.com/neuefische/web-react-recap-project/assets/93415777/acb2b6f6-6a34-4300-957b-b766de773c7f
This is how you can send data to an API, it is called a post request.
async function postFetch() { const response = await fetch( "https://www.some-api-url.com/api", { method: "POST", body: JSON.stringify({ cool: true }), headers: { "Content-Type": "application/json", }, } ); }
https://github.com/ana-nova/color-theme-creator-app/pull/14
As a Developer
I want to check the contrast ratio via an API when colors are added or edited
in order to ensure accessibility compliance.
https://github.com/neuefische/web-react-recap-project/assets/93415777/acb2b6f6-6a34-4300-957b-b766de773c7f
Acceptance Criteria
Tasks
Hint
This is how you can send data to an API, it is called a post request.