add one card

This commit is contained in:
Tommy Parnell
2015-05-18 20:18:21 -04:00
parent 0ef08f188a
commit 3b7921a0dc
2 changed files with 29 additions and 2 deletions

View File

@@ -2,4 +2,22 @@
## What is this?
A simple API wrapper over the netrunner db. Still a WIP
A simple API wrapper over the netrunner db.
## How does this work?
To put it simply
```
new Repository().GetRequest<Cards>()
OR
new Repository().GetCards()
new Repository().GetRequest<Card>(01001)
```

View File

@@ -36,7 +36,7 @@ namespace NetrunnerDb.Net
}
/// <summary>
/// /api/sets/ returns data about all the sets in the database.
/// </summary>
/// </summary>01001
/// <returns></returns>
public IList<Sets> GetSets()
{
@@ -59,5 +59,14 @@ namespace NetrunnerDb.Net
{
return GetRequest<Cards>();
}
/// <summary>
/// /api/card/{code} returns data about all the cards in the database.
/// </summary>
/// <returns></returns>
public IList<OneCard> GetCard()
{
return GetRequest<OneCard>();
}
}
}