Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement an API that gets data from a repository and saves data back to the same repository. The API should contain three methods: GetStores (

Implement an API that gets data from a repository and saves data back to the same repository. The API should contain three methods: GetStores()0 GetStore(int storeId, bool includeCustomers = false)0 CreateCustomer(Customer customer) D Your task is to implement the three methods listed above. You do not need to implement IRepository D . GetStore method should verify whether the user has permission to access a store by checking whether the request's header x -test-country-code 0 matches the store's CountryCode (the header's name is saved in CountryCodeHeaderName 0 variable). Please do not forget to use it while you filter data from IRepository a ! Each of these methods should retum a different HITP status coder Please scroll to the right in order to see the full table =

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Google Analytics 4 The Data Driven Marketing Revolution

Authors: Galen Poll

2024th Edition

B0CRK92F5F, 979-8873956234

More Books

Students also viewed these Databases questions

Question

Show that P[A\B] P[A] P[A[B] P[A]P[B].

Answered: 1 week ago