github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/router/internal/api_routes.go (about)

     1  package internal
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/tedsuo/rata"
     7  )
     8  
     9  // Naming convention:
    10  //
    11  // Method + non-parameter parts of the path
    12  //
    13  // If the request returns a single entity by GUID, use the singular (for example
    14  // /v2/organizations/:organization_guid is GetOrganization).
    15  //
    16  // The const name should always be the const value + Request.
    17  const (
    18  	GetRouterGroups = "GetRouterGroups"
    19  )
    20  
    21  // APIRoutes is a list of routes used by the rata library to construct request
    22  // URLs.
    23  var APIRoutes = rata.Routes{
    24  	{Path: "/v1/router_groups", Method: http.MethodGet, Name: GetRouterGroups},
    25  }