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

URI-Template completion in the annotation #8

Open
koriym opened this issue Aug 31, 2018 · 0 comments
Open

URI-Template completion in the annotation #8

koriym opened this issue Aug 31, 2018 · 0 comments
Assignees
Milestone

Comments

@koriym
Copy link
Member

koriym commented Aug 31, 2018

■プラグインでやること
@link
ProfileリソースのonGetの引数には$idがある場合

@Link(href="<ctrl+space>")                 ← 候補の一覧から/profileを選択

@Link(href="/profile<ctrl+space>")   ← 候補の一覧からidを選択
or
@Link(href="/profile{?<ctrl+space>}")   ← 候補の一覧からidを選択
↓
@Link(href="/profile{?id<caret>}")

・@Emebed
News/SportsリソースのonGetの引数にはarticle_idを持ち、アノテーションがつけられたメソッドの引数には$idがある場合

@Embed(rel="sports", src="<ctrl+space>")                ← 候補の一覧から/news/sportsを選択

@Embed(rel="sports", src="/news/sports<ctrl+space>") ← 候補の一覧からarticle_idを選択

@Embed(rel="sports", src="/news/sports?article_id=<ctrl+space>") ← 候補の一覧から$idを選択

@Embed(rel="sports", src="/news/sports?article_id={id}")

WebsiteリソースのonGetとアノテーションがつけられたメソッドの引数が同じidだけの場合

@Embed(rel="website", src="<ctrl+space>")               ← 候補の一覧から/websiteを選択

@Embed(rel="website", src="/website<ctrl+space>")  ← 候補の一覧からidを選択
or
@Embed(rel="website", src="/website{?<ctrl+space>}")  ← 候補の一覧からidを選択
↓
@Embed(rel="website", src="/website{?id}")
@koriym koriym added this to the 0.4.0 milestone Aug 31, 2018
@ryoryo ryoryo changed the title URI completion in an annotation URI-Template completion in an annotation Aug 31, 2018
@koriym koriym changed the title URI-Template completion in an annotation URI-Template completion in the annotation Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants