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

http-client-java, epic for unbranded emitter #5047

Open
weidongxu-microsoft opened this issue Nov 11, 2024 · 1 comment
Open

http-client-java, epic for unbranded emitter #5047

weidongxu-microsoft opened this issue Nov 11, 2024 · 1 comment
Assignees

Comments

@weidongxu-microsoft weidongxu-microsoft self-assigned this Nov 11, 2024
@weidongxu-microsoft
Copy link
Contributor Author

test typespec by KC

It won't have problem on emitter/compile. One minor issue is a logging #5063

import "@typespec/http";
import "@typespec/rest";
import "@azure-tools/typespec-client-generator-core";
 
@service({
  title: "AssistantService",
})
 
namespace AssistantService;
 
using TypeSpec.Http;
using TypeSpec.Rest;
using Azure.ClientGenerator.Core;
 
@client interface AssistantServiceClient {
  @put @route("upload") Upload(@header contentType: "application/octet-stream", @body document: bytes) : {
    @statusCode statusCode: 200;
    @body response : void;
  };
  @get @route("chat") Chat(@body message: string) : {
    @statusCode statusCode: 200;
    @body response : string;
  };
}

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

1 participant