Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
古い API を RAML で記述しなければならず、構文に苦労しています。時間の問題により、古い API 呼び出しを保持する必要があります。
次の呼び出しについて説明しようとしています。
?Call=GetData&suuid=1234567 ?Call=AddNewData&dataid=12345suuid=1234567 ?Call=DeleteData&dataid=12345suuid=1234567
それはRAMLで可能ですか?
事前にthnx!
Callこれは RAML で指定できますが、異なる値ごとに異なる応答を定義することはできません。
Call
What you can do though is use the anyOf construct of JSON Schema draft-4 to specify the different valid responses applicable to this single resource.
anyOf
draft-4