Skip to content

This is an example NF repository of practicing Git with GitHub.

Notifications You must be signed in to change notification settings

warren0813/nf-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NF-Example

This repository is a sample NF for a simple HTTP service! Try adding more services and learn how to collaborate using GitHub.

Compile & Run

make
./bin/nf -c config/nfcfg.yaml

Try Service

> curl -X GET http://127.0.0.163:8000/default/
"Hello free5GC!"

> curl -X GET http://127.0.0.163:8000/spyfamily/
"Hello SPYxFAMILY!"

> curl -X GET http://127.0.0.163:8000/spyfamily/character/Loid
"Character: Loid Forger"

> curl -X GET http://127.0.0.163:8000/onepiece/
"Hello Straw Hat Pirates!"

> curl -X POST http://127.0.0.163:8000/onepiece/crew \
	-H "Content-Type: application/json" \
	-d '{"name":"Jinbe"}'
"Jinbe has joined the Straw Hat crew!"

Go Test

> go test -v ./...

About

This is an example NF repository of practicing Git with GitHub.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.3%
  • Makefile 0.7%