Skip to content

Commit

Permalink
fix: modify receiver variable name and http status
Browse files Browse the repository at this point in the history
  • Loading branch information
pf-lin committed Jun 21, 2024
1 parent 54dcd72 commit 71438a4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion internal/sbi/api_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *Server) HTTPSmPolicyUpdateNotification(c *gin.Context) {
}

func (s *Server) SmPolicyControlTerminationRequestNotification(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

func (s *Server) HTTPChargingNotification(c *gin.Context) {
Expand Down
12 changes: 6 additions & 6 deletions internal/sbi/api_eventexposure.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func (s *Server) getEventExposureRoutes() []Route {
{
Method: http.MethodGet,
Pattern: "/",
APIFunc: func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{"status": "Service Available"})
APIFunc: func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "Service Available"})
},
},
{
Expand Down Expand Up @@ -49,20 +49,20 @@ func (s *Server) getEventExposureRoutes() []Route {

// SubscriptionsPost -
func (s *Server) SubscriptionsPost(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// SubscriptionsSubIdDelete -
func (s *Server) SubscriptionsSubIdDelete(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// SubscriptionsSubIdGet -
func (s *Server) SubscriptionsSubIdGet(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// SubscriptionsSubIdPut -
func (s *Server) SubscriptionsSubIdPut(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}
4 changes: 2 additions & 2 deletions internal/sbi/api_oam.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ func (s *Server) getOAMRoutes() []Route {
{
Method: http.MethodGet,
Pattern: "/",
APIFunc: func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{"status": "Service Available"})
APIFunc: func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "Service Available"})
},
},
{
Expand Down
12 changes: 6 additions & 6 deletions internal/sbi/api_pdusession.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func (s *Server) getPDUSessionRoutes() []Route {
{
Method: http.MethodGet,
Pattern: "/",
APIFunc: func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{"status": "Service Available"})
APIFunc: func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "Service Available"})
},
},
{
Expand Down Expand Up @@ -61,12 +61,12 @@ func (s *Server) getPDUSessionRoutes() []Route {

// ReleasePduSession - Release
func (s *Server) ReleasePduSession(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// UpdatePduSession - Update (initiated by V-SMF)
func (s *Server) UpdatePduSession(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// HTTPReleaseSmContext - Release SM Context
Expand Down Expand Up @@ -94,7 +94,7 @@ func (s *Server) HTTPReleaseSmContext(c *gin.Context) {

// RetrieveSmContext - Retrieve SM Context
func (s *Server) RetrieveSmContext(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// HTTPUpdateSmContext - Update SM Context
Expand Down Expand Up @@ -122,7 +122,7 @@ func (s *Server) HTTPUpdateSmContext(c *gin.Context) {

// PostPduSessions - Create
func (s *Server) PostPduSessions(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
c.JSON(http.StatusNotImplemented, gin.H{})
}

// HTTPPostSmContexts - Create SM Context
Expand Down
4 changes: 2 additions & 2 deletions internal/sbi/api_upi.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func (s *Server) getUPIRoutes() []Route {
{
Method: http.MethodGet,
Pattern: "/",
APIFunc: func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{"status": "Service Available"})
APIFunc: func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "Service Available"})
},
},
{
Expand Down

0 comments on commit 71438a4

Please sign in to comment.