Code Monkey home page Code Monkey logo

csharp-api-counter's Introduction

C# API Counter

Learning Objectives

  • Use ASP.NET to build a simple API
  • Use RestController classes to map HTTP requests to class methods

Instructions

  1. Fork this repository
  2. Clone your fork to your machine
  3. Open the project in Visual Studio
  4. In the CounterController class, implement the requirements below

Core / Extension Requirements

You're going to add some controller methods to the counter API. Examine the code already written in the controller. The Counter object is a model to represent an item (using Name property) and how many of those items (Value property) you may have. It has Id, Name and Value properties.

The List counters is the collection you will use within the controller to store counters.

Follow the tasks with the //TODO comments. You can use the Task List pane if you wish to view all.

I would encourage you to attempt the Core and Extensions in this exercise.

Further work

Explore the documentation of the ASP.NET framework as much as you are able, you'll be using it for almost everything going forward. We'll be introducing new components of the framework in future exercises.

Try building your own simple API using what you've learned so far.

csharp-api-counter's People

Contributors

logi13 avatar uerbzr avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.