Giter Site home page Giter Site logo

gary-rr / sampledotnetcore2reststub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from llatinov/sampledotnetcore2reststub

0.0 0.0 0.0 24 KB

.NET Core 2.0 REST API running on Docker Linux container

Home Page: https://automationrhapsody.com/

C# 92.06% Shell 6.97% Dockerfile 0.97%

sampledotnetcore2reststub's Introduction

SampleDotNetCore2RestStub

Code examples for following posts:

Build

  • Install .NET Core SDK
  • Open cmd.exe and navigate to project's folder.
  • Build project with following command

dotnet build

Run

Run project with following command

dotnet run

Functionalities

There are several functionalities implemented in the stub. See linked posts for more details how to use them.

Persons

Database where you can add, get or remove persons with JSON showing RESTful web services functionality described in blog post. GET endpoints are: http://localhost:5000/person/all, http://localhost:5000/person/get/{id}, http://localhost:5000/person/remove. POST endpoint is: http://localhost:5000/person/save.

Version

http://localhost:5000/api/version returns a configuration value that is read from external config file.

Secure Persons

http://localhost:5000/secure/person/all with Authorization header

sampledotnetcore2reststub's People

Contributors

llatinov 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.