Skip to content

ibandla/ics-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICS-4 Distributed web objects lab work Deploy to now

Build Status

This repo contains the running project for the ICS4 Distributed Web Objects Unit.

Purpose

To be used to practice consuming a json/xml REST API with feign

Deploy own version

Click the "Deplot to now" button then fill in the MONGO_URI variable and now token.

How to get free mongodb

Checkout mlab and atlas Then use the mongodb uri that they give it looks like mongodb://root:password@bar:27017/foo

Feign client config

You can use the live version of this project to configure feign

    @FeignClient(url = "https://ics4-2018.now.sh/",name = "ics4feign")
    public interface StudentFeignClient {
    
        @RequestMapping(value = "groups",method = RequestMethod.POST)
        Group createGroup(@RequestBody Group group);
    
        @RequestMapping(value = "{id}/jokes",method = RequestMethod.POST)
        Joke createJoke(@RequestBody Joke joke);
    }

About

Classroom examples for distributed objects and web services.

Resources

Stars

Watchers

Forks

Packages

No packages published