當Jerey愈用愈久之後,
如何產生這些URL資源的描述文件就是一件苦惱的事,
如何產生這些URL資源的描述文件就是一件苦惱的事,
有需求的人可以參考這篇文章 Jersey and WADL(Web Application Description Language)
假設你已經有一個jersey的站台之後並完成WADL相關組態設定之後,
就可以呼叫http://localhost:9998/application.wadl來取得你的Restful應用程式的WADL
就可以呼叫http://localhost:9998/application.wadl來取得你的Restful應用程式的WADL
要建立WADL可以參考以下二種方法
How to configure your webapp to provide extended WADL
This page describes what's necessary for getting an extended WADL generated within your running webapp.
How to generate extended WADL (without a webapp)
The generate-wadl sample shows how to generate (extended) WADL with maven(project management tool), without the need to start the webapp. This sample also has a README you might want to look at.
沒有留言:
張貼留言
留個話吧:)