GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - meesont/ExampleService: An example of a microservice for an object called User

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main/java/io/github/meesont
src/main/java/io/github/meesont
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

ExampleService

An example of a microservice for an object called User

Uses MongoDB/Morphia as an example of data persistence within the microservice.

Endpoints

/users [GET]

Returns all users

Response:

{
  "status": "SUCCESS",
  "data": [
    {
      "id": "1",
      "forename": "Tom",
      "surname": "Meeson",
      "email": "[email protected]"
    },
    {
      "id": "2",
      "forename": "John",
      "surname": "Smith",
      "email": "[email protected]"
    }
  ]
} 

/users [POST]

Adds a new user to the system

Response:

{
  "status": "SUCCESS"
}

/users/:id [GET]

Get a specific user by their ID

Response:

{
  "status": "SUCCESS",
  "data":{
    "id": "3",
    "forename": "Bob",
    "surname": "Bobby",
    "email": "[email protected]"
  }
}

/users/:id [PUT]

Edit a specific user's properties

Response:

{
  "status": "SUCCESS",
  "data":{
    "id": "3",
    "forename": "Bob",
    "surname": "Bobby",
    "email": "[email protected]"
  }
}

/users/:id [DELETE]

Deletes a specific user's data

Response:

{
  "status": "SUCCESS",
  "message": "user deleted"
}

/users/:id [OPTIONS]

Checks if a user with given ID exists

Response:

{
  "status": "SUCCESS",
  "message": "user exists"
}

About

An example of a microservice for an object called User

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.