Answered step by step
Verified Expert Solution
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 GetStoreint storeId, bool includeCustomers false CreateCustomerCustomer 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 testcountrycode matches the store's CountryCode the header's name is saved in CountryCodeHeaderName 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started