Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Nuget api v3 #15

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cdaf1a3
Add stub for core.jsonify_search_results
dougthor42 May 1, 2018
ef06144
Add start of test for core.jsonify_search_results
dougthor42 May 1, 2018
1e5e2fa
Add stub for route.search_v3
dougthor42 May 1, 2018
4a1f683
Add static/index.json
dougthor42 May 1, 2018
de84cfe
Renamed NuGet.Api.v3.SearchQueryService.json
dougthor42 May 1, 2018
7b71f4e
Add stubs for various NuGetResponse objects
dougthor42 May 1, 2018
a6ac7a3
Add core.ServiceIndexResource
dougthor42 May 1, 2018
b04a492
Fill in core.ServiceIndex
dougthor42 May 1, 2018
5ed5076
Responses should have 'Response' in the class name
dougthor42 May 1, 2018
fc241d2
fill in basic NuGetResponse.to_json() method
dougthor42 May 1, 2018
05d016a
Skip the JsonSchema test for now, perhaps for good
dougthor42 May 1, 2018
80fe8bf
Add test_to_json_ServiceIndexResourceReponse
dougthor42 May 1, 2018
2b33766
Use a .json property instead of to_json() method
dougthor42 May 1, 2018
e1a4a3a
Add test_to_json_ServiceIndexResponse
dougthor42 May 1, 2018
b404091
REBASE ME. working on the json mapping
dougthor42 May 1, 2018
3ecf7d8
I think I have a working json encoder...
dougthor42 May 2, 2018
e91f1a1
Stubs for SearchResultResponse and SearchResultVersionResponse
dougthor42 May 2, 2018
e8f764b
Fill in the SearchResult classes
dougthor42 May 2, 2018
2566d1d
Remove dummy line
dougthor42 May 2, 2018
0aa89e8
Finished tests for SearchResponse
dougthor42 May 2, 2018
7ae37e5
Use one-line expected values where we can
dougthor42 May 2, 2018
124c621
Remove all the temporary debug logging
dougthor42 May 2, 2018
1a7bb5c
Move the NuGetResponse classes to their own file.
dougthor42 May 2, 2018
2df3571
Made _rename_keys a bit more robust
dougthor42 May 2, 2018
0939e2e
Moved _rename_keys outside of the NuGetResponse class, since it's not…
dougthor42 May 2, 2018
ff3713b
Fill in unit tests for _rename_keys
dougthor42 May 2, 2018
72ffde4
Clean up _rename_keys - don't need to only act on NuGetReponse classes
dougthor42 May 2, 2018
eca4231
Add test for deleting 'None' values.
dougthor42 May 2, 2018
0c41783
Removed class TestNuGetResponse
dougthor42 May 3, 2018
7443eb0
Fix names of tests: to_json no longer exists, was replaced with a pro…
dougthor42 May 3, 2018
4318cab
Fix bug introduced by removing class
dougthor42 May 3, 2018
3e8fbc6
Set values for all other kwargs in SearcResultResponse
dougthor42 May 3, 2018
18119a9
Add all NuGetResponse classes.
dougthor42 May 3, 2018
18d3618
Add test_json_ContentResponse
dougthor42 May 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest == 3.5.0
jsonschema == 2.6.0
5 changes: 5 additions & 0 deletions src/pynuget/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
import base64
import hashlib
import json
import os
import re
import shutil
Expand Down Expand Up @@ -212,3 +213,7 @@ def parse_nuspec(nuspec, ns=None):
raise ApiException("api_error: ID or version missing") # TODO

return metadata, pkg_name.text, version.text


def jsonify_search_results():
pass
Loading