Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add and finish a order in Client folder #93

Open
mithang opened this issue May 18, 2024 · 6 comments
Open

How to add and finish a order in Client folder #93

mithang opened this issue May 18, 2024 · 6 comments

Comments

@mithang
Copy link

mithang commented May 18, 2024

Help me

@mithang
Copy link
Author

mithang commented May 20, 2024

Please

@stepanbenes
Copy link
Owner

I don't have any idea what do you want to do. Add some detailed description.

@mithang
Copy link
Author

mithang commented May 21, 2024

@stepanbenes
In the 'ClientApp' folder, I can't find a way to create/update/delete an order from the API, which includes shipping, payment, etc. Can you guide me on this? Thank you very much.

@stepanbenes
Copy link
Owner

There is an example of creating and updating a product. Just open the project in e.g. Visual Studio, use the intellisense to explore the methods on nopApiClient. There are CreateOrder, UpdateOrder and DeleteOrder methods.

@D3bo
Copy link
Collaborator

D3bo commented Aug 9, 2024

I suggest you to install the plugin and navigate to the page /api/swagger. I admit that I have never used the clientApp project and the test projects.

Probably we should just removed them and if I have time create a new test project using more recent frameworks (It still uses .Net framework 4.6!). @stepanbenes

@stepanbenes
Copy link
Owner

Probably we should just removed them and if I have time create a new test project using more recent frameworks (It still uses .Net framework 4.6!)

I agree. The test projects were blindly copied from the old api repo and are not updated and relevant anymore.

The clientApp project was my experiment to use the C# source generator to automatically generate simple api client from the swagger.json file. It is a console application that I used for testing the api locally during development of the api plugin. It is not necessary or useful for the api plugin users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants