Use PAS UI
This commit is contained in:
@@ -33,9 +33,9 @@ type CDSViewFieldJSON struct {
|
||||
|
||||
//TODO: "https://api.sap.com/api/1.0/container/CDSViews/artifacts?containerType=contentType&$filter=Type%20eq%20'CDSVIEW'&$top=" + fmt.Sprint(top) + "&$skip=" + fmt.Sprint(skip)
|
||||
|
||||
func GetCDSViewField(CDSViewTechnicalName string) error {
|
||||
func GetCDSViewField(CDSViewTechnicalName table.TechnicalName) error {
|
||||
var json CDSViewFieldJSON
|
||||
path := "https://api.sap.com/odata/1.0/catalog.svc/CdsViewsContent.CdsViews('" + CDSViewTechnicalName + "')/$value"
|
||||
path := string("https://api.sap.com/odata/1.0/catalog.svc/CdsViewsContent.CdsViews('" + CDSViewTechnicalName + "')/$value")
|
||||
fmt.Println("Getting: ", CDSViewTechnicalName)
|
||||
err := RequestJSON(path, &json)
|
||||
if err != nil {
|
||||
@@ -60,7 +60,7 @@ func GetCDSViewFields() {
|
||||
|
||||
for _, cdsView := range *cdsViews {
|
||||
var json CDSViewFieldJSON
|
||||
path := "https://api.sap.com/odata/1.0/catalog.svc/CdsViewsContent.CdsViews('" + cdsView + "')/$value"
|
||||
path := string("https://api.sap.com/odata/1.0/catalog.svc/CdsViewsContent.CdsViews('" + cdsView + "')/$value")
|
||||
fmt.Println("Getting: ", cdsView)
|
||||
err := RequestJSON(path, &json)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user