Skip to content
Snippets Groups Projects
Commit 81c965a8 authored by Christoffer Stoll's avatar Christoffer Stoll
Browse files

import via api update

parent 80ea7d58
No related branches found
No related tags found
1 merge request!20Development
......@@ -7,18 +7,18 @@ Examples of csv file can be found in the [csv_examples folder](/csv_examples)
Before importing data you will need to retrieve a bearer token.
```json
```yaml
POST api/auth/signin
BODY {"username":"username", "password":"password"}
```
Keep in mind, that the user needs to have access to <g>management</g> and <g>all networks</g>
Keep in mind, that the user needs to have access to _**management**_ and _**all networks**_
This can configured within the Raven website
# Importing
Set the bearer token as authorization
Attach the csv file as <g>form-data</g> with the key <g>file</g>
Attach the csv file as _**form-data**_ with the key _**file**_
### Authorities
......@@ -63,8 +63,3 @@ POST api/imports/sampling_points
# CSV headers
id,station_id,assessment_type,station_classification,industrial_emissions,distance_source,mobile,used_aqd,media_monitored,measurement_regime,main_emission_sources,traffic_emissions,heating_emissions,industrial_emissions,change_aei_stations,logger_id,pollutant,begin_position,end_position,concentration,timestep
```
<style>
r { color: #BF616A }
g { color: #A3BE8C }
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment