nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
43 stars 11 forks source link

NClient dotnet tool code generation #360

Closed Kingmidas74 closed 2 years ago

Kingmidas74 commented 2 years ago

There is the first dirty imlementation.

Requirements:

Ideas:

Kingmidas74 commented 2 years ago

@smolchanovsky Can you help with templates? I can't determinate which attributes is required.

smolchanovsky commented 2 years ago

FYI, the test on the framework was not passed https://github.com/nclient/NClient/runs/4419485583?check_suite_focus=true#step:3:3553

smolchanovsky commented 2 years ago

Optional: when you execute the dotnet ef command, a funny message with help and version is displayed:


                     _/\__
               ---==/    \\
         ___  ___   |.    \|\
        | __|| __|  |  )   \\\
        | _| | _|   \_/ |  //|\\
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 6.0.0

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

It would be great to do the same, if it's not difficult :)

Kingmidas74 commented 2 years ago

Optional: when you execute the dotnet ef command, a funny message with help and version is displayed:


                     _/\__
               ---==/    \\
         ___  ___   |.    \|\
        | __|| __|  |  )   \\\
        | _| | _|   \_/ |  //|\\
        |___||_|       /   \\\/\\

Entity Framework Core .NET Command-line Tools 6.0.0

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

It would be great to do the same, if it's not difficult :)

Done