package org.zstack.header.network.l2;

import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.query.APIQueryMessage;
import org.zstack.header.query.AutoQuery;
import org.zstack.header.rest.RestRequest;

import java.util.List;

import static java.util.Arrays.asList;

@AutoQuery(replyClass = APIQueryL2NetworkReply.class, inventoryClass = L2NetworkInventory.class)
@Action(category = L2NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
        path = "/l2-networks",
        optionalPaths = {"/l2-networks/{uuid}"},
        method = HttpMethod.GET,
        responseClass = APIQueryL2NetworkReply.class
)
public class APIQueryL2NetworkMsg extends APIQueryMessage {


    public static List<String> __example__() {
        return asList();
    }

}

@@ -417,80 +417,8 @@
 ss)%0A
-@Action(category = L2NetworkConstant.ACTION_CATEGORY, names = %7B%22read%22%7D)%0A
 @Res

fix bug 4936