如何在Apiary中写一个请求url的随机参数

时间:2014-12-23 10:00:57

标签: apiary

我有一个请求url,其参数在本质上是随机的:/ abc / jhdidjkljd / 123 数字不断变化。 我正在寻找一种方法来编写参数,以便我可以模拟目标。

1 个答案:

答案 0 :(得分:0)

您可以使用URL Templates

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:screenOrientation="portrait"
android:fitsSystemWindows="true"
android:focusableInTouchMode="true" >

<TextView
    android:id="@+id/txt1" />

<View
    android:id="@+id/spacer" />

<TextView
    android:id="@+id/txt2" />

</RelativeLayout>