nitter
Oliver Wehrens ๐ช๐บ owehrens@mastodon.social
@owehrens
11 Dec 2012
How would I connect two resources in Rest? Like putting a label on a document? create both /label and /document resource โฆ and ?
3
Stefan Tilkov
@stilkov
11 Dec 2012
Replying to
@owehrens
@owehrens
Depends on what your model actually is, but how about adding a label via POST to .../labels/ ?
Dec 11, 2012 ยท 9:56 PM UTC
1
Oliver Wehrens ๐ช๐บ owehrens@mastodon.social
@owehrens
12 Dec 2012
Replying to
@stilkov
@stilkov
I got that but how to put the label on the document ?
1
Stefan Tilkov
@stilkov
12 Dec 2012
@owehrens
POST to ./labels to add one, PUT with a list of labels to replace them
1
more replies