Граф коммитов

16 Коммитов

Автор SHA1 Сообщение Дата
Timothee Guerin 02ed01e79b
Improved ref docs for model (#2951)
fix https://github.com/Azure/typespec-azure-pr/issues/3861
fix #2232
Generate docs for model properties and reference models within the same
package
<img width="1213" alt="image"
src="https://github.com/microsoft/typespec/assets/1031227/ae7eccd0-97d8-401e-b07f-3375c7b41446">
2024-02-29 07:21:13 -08:00
Timothee Guerin 7cce379d3e
Render README from refdoc (#2242)
fix #2130 

Generate the README.md for typespec libraries automatically using the
subset of the content as what gets included in the ref doc

To achieve this I reoganized the markdown rendering to be able to
provide a reusable system that can be cusomized for different markdown
engines.

- The markdown renderer will render a markdown compatible with Github
Flavored Markdown.
- The docusuaurs rendererer extends the markdown renderer and include a
few extra metadata.
2023-08-07 22:24:56 +00:00
David Wilson 3e669c74c1
Split core HTTP functionality from `@typespec/rest` into `@typespec/http` (#1668)
* Decouple `autoRoute` from HTTP library routing implementation

* Split HTTP functionality of `@typespec/rest` to `@typespec/http`

* Lint and format

* Add Rush change files

* Update playground

* Generate separate documentation for HTTP library

* Minor cleanup and library references

* Add back `isAutoRoute` accessor function

* Add `OperationParameterOptions` to customize operation parameter logic

* Update playground configuration to add `@typespec/http` import

* Remove duplicate diagnostics in REST library

* Update REST and HTTP README files

* Add a changelog entry about `@routeReset` removal
2023-02-27 10:29:55 -08:00
Allen Zhang ec21edc669
Type spec rename follow-up items (#1660)
* minor rename followup

* update compiler homepage link in package.json

* Revert playground host name for a later fix.

* add changelog
2023-02-17 13:35:12 -08:00
Allen Zhang 064161d827 1/3 TypeSpec: Find/Replace Content 2023-02-16 13:07:22 -08:00
Travis Prescott 2336cf763c
Deprecate `@segmentSeparator` and create `@actiosSeparator`. (#1306)
(cherry picked from commit c910a7398bb4736b08ef728a49e5e7e730f2b90d)
2022-11-30 01:07:35 +00:00
Nick Guerrera a0270f7d54
Fix broken links to tutorial, point to documentation (#1114) 2022-10-03 22:29:53 +00:00
Timothee Guerin 90d84de1fb
Setup spell check and fix issues in markdown, ts and changelogs (#1000) 2022-09-09 19:54:18 +00:00
Timothee Guerin 4d0242c3d2
Deprecate @consumes @produces (#995) 2022-09-07 19:46:42 +00:00
Mike Kistler 840867dd83 Fix doc for route and move autoRoute to rest library 2022-09-07 10:32:48 -05:00
David Wilson f50747f502 Add @resource decorator for marking resource model types 2022-08-05 20:04:38 +03:00
Timothee Guerin b44b8d414e
Feature: Add service authentication support (#795)
* Authentication base

* Implement auth on http side

* Authentication

* use unique name

* Add tests

* Add docs

* Merge with main

* Wip

* Export more things

* Export more things

* Allow description

* Allow description

* Missing desc in openapi3

* Missing desc in openapi3

* Fix formatting

* Fix syntax error after merge

Co-authored-by: David Wilson <david@daviwil.com>
2022-08-02 06:54:45 -07:00
Allen Zhang e63e8b59e8
Updating tutorial doc and http/rest library doc (#729)
* initial doc update

* ...

* .

* additional doc update

* update links

* minor update

* update changelog

Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com>
2022-07-25 05:28:57 +00:00
David Wilson c0b11ce960 Add documentation for REST library decorators and auto-route logic 2022-05-04 18:12:28 +03:00
Timothee Guerin 161e6a00e5
Add missing docs: prop defaults, template defaults, libraries getting started (#376) 2022-03-29 20:10:10 +00:00
Nick Guerrera 1e51871915
Add READMEs for all packages, update existing ones (#97) 2021-12-01 16:48:41 -06:00