-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add #191 Align APIs to GovStack: Change URL paths for service endpoints
- Loading branch information
Showing
10 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
Submodule config
updated
from 7127a9 to 50757d
14 changes: 14 additions & 0 deletions
14
src/handlerv2/servicecreateindividualconsentrecord_handler.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceCreateIndividualConsentRecord(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceListIndividualRecordList(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceReadIndividualRecordRead(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/handlerv2/serviceupdateindividualconsentrecord_handler.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceUpdateIndividualConsentRecord(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/handlerv2/serviceverificationagreementconsentrecordread_handler.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceVerificationAgreementConsentRecordRead(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceVerificationAgreementList(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/handlerv2/serviceverificationconsentrecordlist_handler.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package handlerv2 | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/bb-consent/api/src/config" | ||
) | ||
|
||
func ServiceVerificationConsentRecordList(w http.ResponseWriter, r *http.Request) { | ||
|
||
w.Header().Set(config.ContentTypeHeader, config.ContentTypeJSON) | ||
w.WriteHeader(http.StatusOK) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
package httppathsv2 | ||
|
||
// Data agreements | ||
const ServiceDataAgreementRead = "/v2/service/data-agreement/{dataAgreementId}/" | ||
|
||
// Global policy configuration | ||
const ServicePolicyRead = "/v2/service/policy" | ||
|
||
// Data attributes | ||
const ServiceGetDataAttributes = "/v2/service/data-agreements/data-attributes" | ||
|
||
// Verification mechanisms | ||
const ServiceVerificationAgreementList = "/v2/service/verification/data-agreements/" | ||
const ServiceVerificationAgreementConsentRecordRead = "/v2/service/verification/data-agreement/" | ||
const ServiceVerificationConsentRecordList = "/v2/service/verification/records" | ||
|
||
// Recording consent | ||
const ServiceCreateIndividualConsentRecord = "/v2/service/individual/data-agreement/{dataAgreementId}/record" | ||
const ServiceUpdateIndividualConsentRecord = "/v2/service/individual/data-agreement/{dataAgreementRecordId}" | ||
const ServiceListIndividualRecordList = "/v2/service/individual/record/data-agreement/" | ||
const ServiceReadIndividualRecordRead = "/v2/service/individual/record/data-agreement/{dataAgreementId}/" |