Commit Graph

12 Commits (master)

Author SHA1 Message Date
Rachel Kim 6efe4397f1
Removed reference to source
Also removed unnecessary print statement
2020-05-07 22:22:30 -04:00
Rachel Kim cc4c4e1a24
Remove print statements
Remove print statements per Eric's comment since they are not needed
2020-05-07 22:11:06 -04:00
Rachel Kim 4c11e5d6dc
Made edit to . notation per Eric's comment 2020-05-07 22:00:42 -04:00
Rachel Kim cefda1b5f9 Fixed bug with cceid search 2020-05-06 00:06:29 -04:00
Rachel Kim 1bec15f97f Added new search functionality 2020-05-05 22:32:28 -04:00
Mike Benowitz 0675146f38 Update API code to function in all (local/dev/production) environments 2019-07-08 16:55:30 -04:00
Mike Benowitz f0a112456b Only use config.yaml in local development 2019-07-05 15:19:01 -04:00
Mike Benowitz 0542d85b89 Update app.py to work with EBS WSGI
The ElasticBeanstalk application looks for an object named `application` to run with `WSGI` this was previously created with the `create_app` method and used `app` as the name for the application object.
2019-07-05 14:59:08 -04:00
Mike Benowitz cd9f98e302 Fix app main and api main scripts 2019-07-05 14:06:54 -04:00
Mike Benowitz 6e7ea63ac4 SFR-479 Delete superseeded Swagger file
Removes a Swagger YAML file that is not currently used. It was too difficult to maintain swagger in a set of separate YAML files, so a single one was created and loaded in the main FLask app.
2019-06-04 17:14:04 -04:00
Mike Benowitz f890aaf87b SFR-479 Remove dangling return
Removes old `base` response that was never reached in any case
2019-06-04 17:12:04 -04:00
Mike Benowitz d8f676c88f SFR-479 Add Basic API
Add a basic `Flask` API that responds to queries for copyright data. This includes 5 basic endpoints:

- `/search/fulltext`: queries all text fields in the Registration and Renewal records
- `/search/registration/<regnum>`: queries the collection for a specific copyright registration by registration number
- `/search/renewal/<rennum>`: queries the collection for a specific copyright renewal by renewal number
- `/registration/<uuid>`: fetches a single registration record by internally assigned UUID
- `/registration/<uuid?`: fetches a single renewal record by internally assigned UUID

The api can be run with the standard `python -m flask run` from the root of the project and by default will run in `production` mode. To set `development` run `export FLASK_ENV=development` before starting the application.
2019-06-04 16:43:08 -04:00