+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+.
diff --git a/cmd/api/api.go b/cmd/api/api.go
index c83f43a..d92cf40 100644
--- a/cmd/api/api.go
+++ b/cmd/api/api.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package api
import (
@@ -14,6 +31,8 @@ type CDSViewFieldJSON struct {
Fields []table.CDSViewField `json:"fields"`
}
+//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 {
var json CDSViewFieldJSON
path := "https://api.sap.com/odata/1.0/catalog.svc/CdsViewsContent.CdsViews('" + CDSViewTechnicalName + "')/$value"
diff --git a/cmd/database/database.go b/cmd/database/database.go
index 1ef0f81..12af22a 100644
--- a/cmd/database/database.go
+++ b/cmd/database/database.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package database
import (
diff --git a/cmd/database/table/cdsView.go b/cmd/database/table/cdsView.go
index 292ae42..3a7c266 100644
--- a/cmd/database/table/cdsView.go
+++ b/cmd/database/table/cdsView.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package table
import (
diff --git a/cmd/database/table/cdsViewField.go b/cmd/database/table/cdsViewField.go
index 0c7411a..64b80b0 100644
--- a/cmd/database/table/cdsViewField.go
+++ b/cmd/database/table/cdsViewField.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package table
import (
diff --git a/cmd/database/table/keyword.go b/cmd/database/table/keyword.go
index 0347555..a6020ee 100644
--- a/cmd/database/table/keyword.go
+++ b/cmd/database/table/keyword.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package table
import (
diff --git a/cmd/model/cdsView.go b/cmd/model/cdsView.go
index e8da444..e29fc8d 100644
--- a/cmd/model/cdsView.go
+++ b/cmd/model/cdsView.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package model
import (
diff --git a/cmd/model/keyword.go b/cmd/model/keyword.go
index 3e95cc7..8e4b06a 100644
--- a/cmd/model/keyword.go
+++ b/cmd/model/keyword.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package model
import "sap-cds-search/cmd/database/table"
diff --git a/cmd/model/results.go b/cmd/model/results.go
index 0b998df..8bba7f8 100644
--- a/cmd/model/results.go
+++ b/cmd/model/results.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package model
type ResultsModel struct {
diff --git a/cmd/router/router.go b/cmd/router/router.go
index 3177e23..bc5dfdb 100644
--- a/cmd/router/router.go
+++ b/cmd/router/router.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package router
import (
diff --git a/cmd/search/search.go b/cmd/search/search.go
index 8555fa7..50b1b15 100644
--- a/cmd/search/search.go
+++ b/cmd/search/search.go
@@ -1,3 +1,20 @@
+/*
+ Copyright (C) 2025 snoutie
+ Authors: snoutie (copyright@achtarmig.org)
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
package search
import (
diff --git a/cmd/ui/html/main.html b/cmd/ui/html/main.html
index e46fa45..b8a66c6 100644
--- a/cmd/ui/html/main.html
+++ b/cmd/ui/html/main.html
@@ -11,6 +11,9 @@
{{template "search-placeholder-info" . }}
+